All docs
V21.2
21.2
21.1
20.2
The page you are viewing does not exist in version 20.2. This link will take you to the root page.
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

TreeListOptionsFilter.FilterEditorAllowCustomExpressions Property

Gets or sets whether the Filter Editor allows you to display, create and edit custom expressions—expressions that cannot be converted to Filter Editor nodes.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v21.2.dll

Declaration

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

Property Value

Type Default Description
DefaultBoolean

Default

A value that specifies whether the Filter Editor allows you to display, create and edit custom expressions.

Available values:

Name Description
True

Corresponds to a Boolean value of true.

False

Corresponds to a Boolean value of false.

Default

The default behavior determined by the control’s logic.

Property Paths

You can access this nested property as listed below:

Object Type Path to FilterEditorAllowCustomExpressions
GanttControl
.OptionsFilter.FilterEditorAllowCustomExpressions
ResourcesTree
.OptionsFilter.FilterEditorAllowCustomExpressions
TreeList
.OptionsFilter.FilterEditorAllowCustomExpressions

Remarks

Individual filter expressions (for example, expressions that contain advanced or custom functions) cannot be converted to Filter Editor nodes. Below is an example:

[Sales Date] > AddDays(LocalDateTimeToday(), -25)

The AllowCustomExpressions property specifies whether and how the Filter Editor displays these expressions. The following options are available:

True

The Filter Editor displays custom expressions, and allows users to edit existing and create new custom expressions.

FilterControl-Custom Expressions

Users can create new custom expressions from a context menu.

FilterControl - Add Custom Expressions menu

Users can click the expression to open the Expression Editor, which allows them to edit the expression.

FilterControl-Custom Expressions-Expression Editor

Handle the TreeList.FilterEditorCreated event to customize this Expression Editor.

Default
The Filter Editor displays custom expressions as simple text. A user cannot edit or create custom expressions. FilterControl-Custom Expressions-Default mode
False
The Filter Editor does not display custom expressions, and does not allow users to create new ones.
See Also