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

    Specifies the search and filter condition.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.2.dll

    Declaration

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

    Property Value

    Type Default Description
    ListSearchFilterCondition null

    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.

    Remarks

    Use the SearchFilterCondition property to change the combo box search and filter condition.

    The following snippet sets SearchFilterCondition to StartsWith:

    <DxRibbon>
        <DxRibbonTab Text="Home">
            <DxRibbonGroup>
                <DxRibbonComboBoxItem Data="FontSizes"
                                      @bind-Value="CurrentFontSize"
                                      TextFieldName="@nameof(FontSizeInfo.Size)"
                                      AllowUserInput="true"
                                      NullText="Font Size" 
                                      SearchFilterCondition="@ListSearchFilterCondition.StartsWith" />
            </DxRibbonGroup>
        </DxRibbonTab>
    </DxRibbon>
    
    @code {
        private FontSizeInfo CurrentFontSize { get; set; }
        private IEnumerable<FontSizeInfo> FontSizes => FontSizeInfo.DefaultFontSizes;
    }
    

    Implements

    DevExpress.Blazor.Ribbon.IRibbonComboBox<TData, TValue>.SearchFilterCondition
    See Also