Skip to main content
All docs
V24.2

ListSearchTextParseMode Enum

Lists values that specify how the List Box treats search words.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

public enum ListSearchTextParseMode

Members

Name Description
Default

The ExactMatch is used by default. The search words are not treated separately. Only records that match the search text exactly are shown.

GroupWordsByAnd

The search words are grouped as individual conditions by the AND logical operator. Only records that match all the conditions are shown.

GroupWordsByOr

The search words are treated as individual conditions grouped by the OR logical operator. Records that match at least one of these conditions are shown.

ExactMatch

The search words are not treated separately. Only records that match the search text exactly are shown.

Remarks

The search feature allows you to filter and highlight the search text in List Box data. If the search text contains multiple words separated by space characters, the words can be treated as a single condition or as individual conditions grouped by the Or or And operator.

Set the SearchTextParseMode property to a value of the ListSearchTextParseMode enumerator to specify how the List Box component treats search words.

The following code snippet sets the SearchTextParseMode property to the GroupWordsByOr value:

<DxListBox TData=Person TValue=Person Data="Staff.DataSource"
            ShowCheckboxes="true"
            SearchTextParseMode="ListSearchTextParseMode.GroupWordsByOr"
            SearchText="sandra electronics"
            SelectionMode="@ListBoxSelectionMode.Multiple">
    <Columns>
        <DxListEditorColumn FieldName="FirstName"></DxListEditorColumn>
        <DxListEditorColumn FieldName="LastName"></DxListEditorColumn>
        <DxListEditorColumn FieldName="Department"></DxListEditorColumn>
    </Columns>
</DxListBox>

Search Text

See Also