Back to Devexpress

IComboBoxSettings.SearchFilterCondition Property

blazor-devexpress-dot-blazor-dot-icomboboxsettings-0d52d78b.md

latest2.7 KB
Original Source

IComboBoxSettings.SearchFilterCondition Property

Specifies the search and filter condition.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(ListSearchFilterCondition.Default)]
[Parameter]
ListSearchFilterCondition SearchFilterCondition { get; set; }

Property Value

TypeDefaultDescription
ListSearchFilterConditionDefault

An enumeration value.

|

Available values:

NameDescription
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.

|

Remarks

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:

csharp
void Grid_CustomizeFilterRowEditor(GridCustomizeFilterRowEditorEventArgs e) {
    if(e.EditSettings is IComboBoxSettings comboBoxSettings)
        comboBoxSettings.SearchFilterCondition=ListSearchFilterCondition.StartsWith;
}
csharp
void Grid_CustomizeDataRowEditor(GridCustomizeDataRowEditorEventArgs e) {
    if(e.EditSettings is IComboBoxSettings comboBoxSettings)
        comboBoxSettings.SearchFilterCondition=ListSearchFilterCondition.StartsWith;
}

See Also

IComboBoxSettings Interface

IComboBoxSettings Members

DevExpress.Blazor Namespace