blazor-devexpress-dot-blazor-dot-icomboboxsettings-0d52d78b.md
Specifies the search and filter condition.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[DefaultValue(ListSearchFilterCondition.Default)]
[Parameter]
ListSearchFilterCondition SearchFilterCondition { get; set; }
| Type | Default | Description |
|---|---|---|
| ListSearchFilterCondition | Default |
An enumeration value.
|
Available values:
| Name | Description |
|---|---|
| Default |
The Contains condition is used. Filters the component for items that contain the search string. Search string matches are highlighted.
| | 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.
|
Use the SearchFilterCondition property to change the combo box search and filter condition at runtime.
The IComboBoxSettings interface allows you to get and customize settings of a combo box editor at runtime. You can get editor settings in the following ways:
Call the GetColumnEditSettings method to get editor settings of the column bound to the specified data source field.
Handle the CustomizeFilterRowEditor event to customize a cell editor in the filter row.
void Grid_CustomizeFilterRowEditor(GridCustomizeFilterRowEditorEventArgs e) {
if(e.EditSettings is IComboBoxSettings comboBoxSettings)
comboBoxSettings.SearchFilterCondition=ListSearchFilterCondition.StartsWith;
}
void Grid_CustomizeDataRowEditor(GridCustomizeDataRowEditorEventArgs e) {
if(e.EditSettings is IComboBoxSettings comboBoxSettings)
comboBoxSettings.SearchFilterCondition=ListSearchFilterCondition.StartsWith;
}
See Also