DxComboBoxSettings.SearchFilterCondition Property
Specifies the search and filter condition.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
[DefaultValue(ListSearchFilterCondition.Default)]
[Parameter]
public ListSearchFilterCondition SearchFilterCondition { get; set; }
Property Value
Type | Default | Description |
---|---|---|
ListSearchFilterCondition | Default | An enumeration value. |
Available values:
Name | Description |
---|---|
Default | The |
StartsWith | Filters the component for items that begin with the search string. |
Contains | Filters the component for items that contain the search string. Search string matches are highlighted. |
Equals | Searches for items whose value matches the search string. |
Remarks
Use the SearchFilterCondition
property to change the combo box search and filter condition.
The following snippet sets SearchFilterCondition
to StartsWith
:
<DxGrid Data="Products"
EditMode="GridEditMode.EditRow"
CustomizeEditModel="Grid_CustomizeEditModel"
EditModelSaving="Grid_EditModelSaving">
<Columns>
<DxGridCommandColumn DeleteButtonVisible="false" Width="15%" />
<DxGridDataColumn FieldName="ProductName" Width="25%" />
<DxGridDataColumn FieldName="CategoryId" Caption="Category" Width="10%">
<EditSettings>
<DxComboBoxSettings Data="Categories"
ValueFieldName="CategoryId"
TextFieldName="CategoryName"
SearchFilterCondition="ListSearchFilterCondition.StartsWith" />
</EditSettings>
</DxGridDataColumn>
<DxGridDataColumn FieldName="UnitPrice" DisplayFormat="c" Width="10%">
<EditSettings>
<DxSpinEditSettings MinValue="0M" Mask="n3" />
</EditSettings>
</DxGridDataColumn>
<DxGridDataColumn FieldName="UnitsInStock" />
<DxGridDataColumn FieldName="QuantityPerUnit" Width="15%" />
<DxGridDataColumn FieldName="Discontinued" />
</Columns>
</DxGrid>