Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.2.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:

See Also