Skip to main content
All docs
V25.1
  • TreeListSearchTextParseMode Enum

    Lists values that specify how the TreeList searches for a match if the query contains multiple words.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    Declaration

    public enum TreeListSearchTextParseMode

    Members

    Name Description Image
    GroupWordsByAnd

    The TreeList searches for a row containing all the words from the search query (in any order).

    Search Box: And Mode

    GroupWordsByOr

    The TreeList searches for a row containing any word from the search query.

    Search Box: Or Mode

    ExactMatch

    The TreeList searches for an exact matching phrase.

    Search Box: Exact Mode

    Related API Members

    The following properties accept/return TreeListSearchTextParseMode values:

    Remarks

    The search feature allows users to filter data rows in the TreeList component, display those that match the search string, and highlight search results. If the search text contains multiple words separated by space characters, words can be treated as a single condition or individual conditions.

    Use the SearchTextParseMode property to specify how the TreeList component searches for a match if the query contains multiple words.

    @inject EmployeeTaskService EmployeeTaskService
    
    <DxTreeList Data="TreeListData"
                KeyFieldName="Id"
                ParentKeyFieldName="ParentId"
                ShowSearchBox="true"
                SearchTextParseMode="TreeListSearchTextParseMode.GroupWordsByAnd"
                SearchText="Product me">
        <Columns>
            <DxTreeListDataColumn FieldName="Name" Caption="Task" />
            <DxTreeListDataColumn FieldName="EmployeeName" />
        </Columns>
    </DxTreeList>
    
    @code {
        List<EmployeeTask> TreeListData { get; set; }
    
        protected override void OnInitialized() {
            TreeListData = EmployeeTaskService.GenerateData();
        }
    }
    
    See Also