DxListBox<TData, TValue>.SearchTextParseMode Property
Specifies how the list box treats search words.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v26.1.dll
Declaration
[DefaultValue(ListSearchTextParseMode.Default)]
[Parameter]
public ListSearchTextParseMode SearchTextParseMode { get; set; }
Property Value
| Type | Default | Description |
|---|---|---|
| ListSearchTextParseMode | Default | The text parse mode. |
Available values:
| Name | Description |
|---|---|
| Default | The |
| GroupWordsByAnd | The search words are grouped as individual conditions by the |
| GroupWordsByOr | The search words are treated as individual conditions grouped by the |
| ExactMatch | The search words are not treated separately. Only records that match the search text exactly are shown. |
Remarks
The search feature allows users to locate 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.
Use the SearchTextParseMode property 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 Syntax
Search text can include special characters that allow users to create composite criteria. Refer to the following section for additional information: Search Syntax