Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

NavigationFilterMode Enum

Lists values that specify the filter option in the TreeView and Accordion components.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
public enum NavigationFilterMode

#Members

Name Description
Nodes

The component displays only nodes that meet the filter criteria. A node at the hierarchy’s highest level that meets the filter criteria becomes the root node. The node’s child nodes that meet the filter criteria move to the upper hierarchy levels.

ParentBranch

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

EntireBranch

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

#Related API Members

The following properties accept/return NavigationFilterMode values:

#Remarks

Use the FilterMode property to specify how the component displays filtered nodes. The following code snippet sets the property value to ParentBranch:

Razor
<DxTreeView ShowFilterPanel="true"
            FilterMode="NavigationFilterMode.ParentBranch">
  @* ... *@
</DxTreeView>

Parent Branch

In the following example, the FilterMode property value is set to EntireBranch:

Razor
<DxTreeView ShowFilterPanel="true"
            FilterMode="NavigationFilterMode.EntireBranch">
  @* ... *@
</DxTreeView>

Entire Branch

The following code snippet sets the Nodes property value:

Razor
<DxTreeView ShowFilterPanel="true"
            FilterMode="NavigationFilterMode.Nodes">
  @* ... *@
</DxTreeView>

Nodes

See Also