Skip to main content
A newer version of this page is available. .

TreeListOptionsFilter.FilterMode Property

Gets or sets whether to show a node that matches the current filter regardless of whether its parent nodes also match the filter, and if so, whether to show the parent nodes.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v19.1.dll

Declaration

[DefaultValue(FilterMode.Default)]
[XtraSerializableProperty]
public virtual FilterMode FilterMode { get; set; }

Property Value

Type Default Description
FilterMode **Default**

A FilterMode enumeration value that specifies whether to show nodes that match the current filter depending on their parent nodes.

Available values:

Name Description
Default

The same as:

For version 16.1 and older, the default is Standard. See Version Compatibility: Default Property Values for details.

Standard

Nodes that match the applied filter are only displayed if their parent nodes also fit the filter.

TreeList_FilterMode_Standard

If a node fits the filter but any of its parent nodes does not, the node is not displayed.

TreeList_FilterMode_Standard2

Smart

Nodes that match the applied filter are displayed regardless of whether their parent nodes fit the filter.

TreeList_FilterMode_Smart

Unlike the Extended mode, parent nodes that do not match the filer are not displayed.

Extended

Nodes that match the applied filter are displayed regardless of whether their parent nodes fit the filter.

TreeList_FilterMode_Extended

Unlike the Smart mode, if a node matches the applied filter, all its parent nodes are also displayed even if they do not fit the filter.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to FilterMode
WinForms Controls ResourcesTree
.OptionsFilter.FilterMode
TreeList
.OptionsFilter.FilterMode
Reporting XRDesignFieldList
.OptionsFilter.FilterMode
XRDesignReportExplorer
.OptionsFilter.FilterMode

Remarks

The TreeList.OptionsFilter property provides access to options specify to the filtering functionality. The TreeList.OptionsFilter.FilterMode property specifies whether to show nodes that match the current filter depending on their parent nodes. See the FilterMode enumeration for the provided modes.

Note

Version Compatibility To enable filtering:

For more information, see Version Compatibility: Default Property Values.

The following code snippets (auto-collected from DevExpress Examples) contain references to the FilterMode property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also