Skip to main content
All docs
V24.2

TreeListFilterTreeMode Enum

List values that specify how the TreeList component displays filtered nodes.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

public enum TreeListFilterTreeMode

Members

Name Description
Auto

This option is identical to Nodes if the TreeList is bound to the GridDevExtremeDataSource; otherwise, the Auto option is identical to ParentBranch.

ParentBranch

The TreeList component displays a node that meets the filter criteria and all its parent nodes, even if they do not meet the criteria.

EntireBranch

The TreeList component displays a node that meets the filter criteria and all its parent and child nodes, even if they do not meet the criteria.

Nodes

The component ignores parent-child relationships and displays all nodes that meet the filter criteria at one level.

Related API Members

The following properties accept/return TreeListFilterTreeMode values:

Remarks

Specify the FilterTreeMode property to set how the TreeList component displays filtered nodes:

EntireBranch

The TreeList component displays a node that meets the filter criteria and all its parent and child nodes, even if they do not meet the criteria.

Entire Branch Filter Tree Mode

Nodes

The TreeList component ignores parent-child relationships and displays all nodes that meet the filter criteria at one level. This mode improves overall performance when the TreeList is bound to a large remote data source.

Nodes Filter Tree Mode

ParentBranch

The TreeList component displays a node that meets the filter criteria and all its parent nodes, even if they do not meet the criteria.

Parent Branch Filter Tree Mode

When the FilterTreeMode property is set to Auto (default), the filter tree mode depends on the bound data source. When bound to the GridDevExtremeDataSource, the TreeList component switches to the Nodes mode to improve performance. In other data binding scenarios, the TreeList operates in ParentBranch mode.

The following example switches the TreeList component to the EntireBranch mode:

@inject EmployeeTaskService TaskService

<DxTreeList Data="@Data"
            KeyFieldName="Id"
            ParentKeyFieldName="ParentId"
            ShowFilterRow="true"
            FilterTreeMode="TreeListFilterTreeMode.EntireBranch" >
    <Columns>
        <DxTreeListDataColumn FieldName="Name" Caption="Task" Width="40%" />
        <DxTreeListDataColumn FieldName="EmployeeName"
                              FilterRowValue='"John"'
                              FilterRowOperatorType="TreeListFilterRowOperatorType.Contains" />
        <DxTreeListDataColumn FieldName="StartDate" MinWidth="100" />
        <DxTreeListDataColumn FieldName="DueDate" MinWidth="100" />
        <DxTreeListDataColumn FieldName="Progress" DisplayFormat="{0}%" />
    </Columns>
</DxTreeList>

@code {
    List<EmployeeTask> Data { get; set; }

    protected override void OnInitialized() {
        Data = TaskService.GenerateData();
    }
}

Run Demo: Filter Row View Example: Getting Started with TreeList

See Also