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

Pop-up Filter Menus

  • 3 minutes to read

Note

Demo Run the XtraTreeList demo to see the filtering functionality in action.

How to: Enable/Disable Pop-up Filter Menus

Users can filter data in a tree list using pop-up filter menus. To disable this feature, use the TreeList.OptionsCustomization.AllowFilter property (see TreeListOptionsCustomization.AllowFilter). To override this setting for a particular column, use the TreeListColumn.OptionsFilter.AllowFilter property (see TreeListOptionsColumnFilter.AllowFilter).

To invoke a pop-up filter menu, click a column’s filter button Column Filter Button Icon. In code, use the TreeList.ShowFilterPopup method.

Styles: Excel and Classic

Pop-up filter menus support two styles.

  • Excel (default) — Microsoft Excel®-inspired menus whose interface changes depending on the data type. See Excel Style for more information.

    TreeList_PopupFilterMenu_Excel

  • Classic — regular lists of available values. See Classic Style for more information.

    TreeList_PopupFilterMenu_Classic

To specify the menu style:

Note

See also The Pop-up Filter Menu’s Visual Elements topic contains the table of options that affects menu appearance and behavior.

Modes: Effect of Parent Nodes on Filtering

The TreeList.OptionsFilter.FilterMode property (see TreeListOptionsFilter.FilterMode) specifies whether to show a node that matches the current filter, regardless of whether its parent nodes also match the filter. If parent nodes should not match the filter and should not display the node, you can specify whether these parent nodes are displayed.

Mode

Description

Default

The same as:

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

Extended

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

TreeList_FilterMode_Extended

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

Smart

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

TreeList_FilterMode_Smart

Unlike in Extended mode, if parent nodes do not match the filter, they are not displayed.

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 do not, the node is not displayed.

TreeList_FilterMode_Standard2

See Also