Back to Devexpress

Expanding and Collapsing Nodes

vcl-170057-expressquantumtreelist-end-user-capabilities-expanding-and-collapsing-nodes.md

latest2.6 KB
Original Source

Expanding and Collapsing Nodes

  • Jul 29, 2024
  • 2 minutes to read

To expand a collapsed parent node, use the following keyboard shortcuts or mouse operations:

Keyboard ShortcutResult
Plus (+)Expands a node to show its immediate children.
Right ArrowExpands a node to show its immediate children in the single-column View.
Asterisk (*) on the numeric keypadRecursively expands a subtree.
Mouse ActionResult
Click an expand button, double-click a node, double-click a node indicator.Expands a node to show its immediate children.

To collapse an expanded parent node, use the following keyboard shortcuts or mouse operations:

Keyboard ShortcutResult
Minus (-)Collapses an expanded node.
Left ArrowCollapses an expanded node in the single-column View.
Mouse ActionResult
Click an expand button, double-click a node, double-click a node indicator.Collapses an expanded node.

Notes

A parent node can be automatically expanded or collapsed when performing drag and drop. To enable this, activate the tree list’s OptionsBehavior.DragExpand and OptionsBehavior.DragCollapse options.

Automatic expansion can also be performed during an incremental search. For this purpose, activate the tree list’s OptionsBehavior.ExpandOnIncSearch option.

The Right Arrow and Left Arrow keys are used for node expansion and collapse when only one column is visible in the View. In the multi-column View, these keys are used for data cell navigation.

Node expansion with a node or a node indicator double-click is allowed, if the tree list’s OptionsBehavior.ExpandOnDblClick option is active.