Skip to main content
All docs
V25.1
  • DxTreeListDataColumn.SearchEnabled Property

    Specifies whether the TreeList can search text in cells of the current column.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    Declaration

    [DefaultValue(true)]
    [Parameter]
    public bool SearchEnabled { get; set; }

    Property Value

    Type Default Description
    Boolean true

    true if search in the current column is allowed; otherwise, false.

    Remarks

    The TreeList component looks for matches with search text in cells of all visible data columns. Use the SearchEnabled property to exclude a specific column from search operations:

    @inject EmployeeTaskService EmployeeTaskService
    
    <DxTreeList Data="TreeListData"
                KeyFieldName="Id"
                ParentKeyFieldName="ParentId"
                ShowSearchBox="true"
                SearchBoxNullText="Search for a task...">
        <Columns>
            <DxTreeListDataColumn FieldName="Name" Caption="Task" />
            <DxTreeListDataColumn FieldName="EmployeeName" SearchEnabled="false" />
            <DxTreeListDataColumn FieldName="StartDate" SearchEnabled="false" />
            <DxTreeListDataColumn FieldName="DueDate" SearchEnabled="false" />
        </Columns>
    </DxTreeList>
    
    @code {
        List<EmployeeTask> TreeListData { get; set; }
    
        protected override void OnInitialized() {
            TreeListData = EmployeeTaskService.GenerateData();
        }
    }
    

    Search Box Overview

    Refer to the following topic for additional information: Search Box in Blazor TreeList.

    See Also