Skip to main content
All docs
V25.2
  • DxDropDownListEditorBase<TData, TValue>.SearchFilterCondition Property

    Specifies the search and filter condition.

    Namespace: DevExpress.Blazor.Base

    Assembly: DevExpress.Blazor.v25.2.dll

    NuGet Package: DevExpress.Blazor

    Declaration

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

    Property Value

    Type Default Description
    ListSearchFilterCondition Default

    A ListSearchFilterCondition 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.

    Remarks

    The DevExpress Blazor ComboBox and TagBox components can search for text, and filter and highlight search results. Use the following API members to enable search and filter capabilities:

    • SearchMode — Specifies whether the component can search for text users type in the edit box. When the AutoSearch mode is active, the ComboBox filters items based on the search string and highlights matches. All visible columns are searched.

      Users can use special characters to create composite criteria. Refer to the following section for additional information: Search Syntax.

    • SearchFilterCondition — Specifies the search and filter condition (Contains, Equals, or StartsWith).
    • SearchTextParseMode — Specifies how the component combines words in the search query. If search text contains multiple words separated by space characters, words can be treated as single or individual conditions. The GroupWordsByAnd, GroupWordsByOr, and ExactMatch modes are available.
    • SearchEnabled - Specifies whether the component can search text in cells of the current column.

    ComboBox Example

    <DxComboBox Data="Staff.DataSource" 
                @bind-Value="@Value" 
                SearchMode="ListSearchMode.AutoSearch"
                SearchFilterCondition="ListSearchFilterCondition.Contains">
        <Columns>
            <DxListEditorColumn FieldName="FirstName"></DxListEditorColumn>
            <DxListEditorColumn FieldName="LastName"></DxListEditorColumn>
            <DxListEditorColumn FieldName="Department" SearchEnabled="false"></DxListEditorColumn>
        </Columns>
    </DxComboBox>
    
    @code {
        string Value { get; set; }
    }
    

    When a user types text into the edit box, the ComboBox filters and highlights search results.

    ComboBox - Filter Data

    Run Demo: ComboBox - Search and Filter Data

    Implements

    DevExpress.Blazor.IDropDownListEditorBase<TData, TValue>.SearchFilterCondition
    See Also