Skip to main content
All docs
V24.1

TreeListOptionsFind.ExpandNodesOnSearch Property

Gets or sets whether to expand a node if its child nodes contain the search string.

Namespace: DevExpress.XtraTreeList.Columns

Assembly: DevExpress.XtraTreeList.v24.1.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

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

Property Value

Type Default Description
DefaultBoolean Default

true to expand a node if its child nodes contain the search string; otherwise, false. The Default value is equivalent to true.

Available values:

Name Description Return Value
True

The value is true.

0

False

The value is false.

1

Default

The value is specified by a global option or a higher-level object.

2

Property Paths

You can access this nested property as listed below:

Object Type Path to ExpandNodesOnSearch
TreeList
.OptionsFind .ExpandNodesOnSearch

Remarks

The ExpandNodesOnSearch property is in effect if the ColumnViewOptionsFind.Behavior property is set to Search.

When a user starts to search with the ExpandNodesOnSearch option enabled, the Tree List expands all nodes whose child nodes match the search query:

Tree List - Expand Nodes On Search

See Also