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

TreeListOptionsView.FilterCriteriaDisplayStyle Property

Gets or sets the display style of filter conditions in the Filter Panel and built-in Filter Editor.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v19.2.dll

Declaration

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

Property Value

Type Default Description
FilterCriteriaDisplayStyle **Default**

The display style of filter conditions in the Filter Panel and built-in Filter Editor. When the FilterCriteriaDisplayStyle property is set to Default, the actual display style is specified by the static WindowsFormsSettings.FilterCriteriaDisplayStyle property.

Available values:

Name Description
Default

When a control’s FilterCriteriaDisplayStyle property is set to Default, the actual display style is specified by the WindowsFormsSettings.FilterCriteriaDisplayStyle property.

For the Report Designer and Dashboard Designer, the default display style is Visual.

For other controls, the default display style is Text.

Visual

Renders filter criteria in an easy-to-read format and uses skin-based colored highlights to differentiate between column names, functions and values. In the Filter Panel, the ‘x’ button is displayed when you hover over a condition. This button allows users to quickly remove individual conditions from the filter.

Text

Renders filter criteria in a text-based format.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to FilterCriteriaDisplayStyle
WinForms Controls GanttControl
.OptionsView.FilterCriteriaDisplayStyle
ResourcesTree
.OptionsView.FilterCriteriaDisplayStyle
TreeList
.OptionsView.FilterCriteriaDisplayStyle
Reporting XRDesignFieldList
.OptionsView.FilterCriteriaDisplayStyle
XRDesignReportExplorer
.OptionsView.FilterCriteriaDisplayStyle

Remarks

Use the static WindowsFormsSettings.FilterCriteriaDisplayStyle property to specify the default display style of filter criteria for controls in your application (Data Grid, Tree List, Vertical Grid, Pivot Grid and Filter Editors). Individual grid and tree list controls override this setting if you set their FilterCriteriaDisplayStyle property to any value except Default.

The following list demonstrates the available display styles of filter criteria in controls.

  • Visual -

    Renders filter criteria in an easy-to-read format and uses skin-based colored highlights to differentiate between column names, functions and values. In the Filter Panel, the ‘x’ button is displayed when you hover over a condition. This button allows users to quickly remove individual conditions from the filter.

  • Text -

    Renders filter criteria in a text-based format.

Note

You can bind a standalone Filter Control to a data-aware control (Grid, Tree List, etc.) with the SourceControl property (FilterControl.SourceControl, FilterEditorControl.SourceControl). When you change the data-aware control’s FilterCriteriaDisplayStyle property at runtime, the standalone Filter Control does not automatically update its appearance to match the new display style. To forcibly update the Filter Control’s appearance, call the Filter Control’s LayoutChanged method.

See Also