Skip to main content

Focusing and Selecting Nodes

  • 2 minutes to read

To focus a particular node, click the node, its indicator, or use navigation capabilities provided by the embedded navigator. The focused node is selected automatically. For the focused node, the node indicator displays a right arrow.

To select multiple nodes in a random order, hold down the Ctrl key, and click the nodes you want to select.

The image below shows non-adjacent selected nodes:

To select contiguous nodes, click the first node you want to select. Then, hold down the Shift key and click the last node.

The image below shows the TreeList control with the third to the twelfth nodes selected:

You can also select multiple series of nodes. First, select contiguous nodes, using the Shift key. Then, add single nodes to the selection using the Ctrl key.

You can unselect all the selected nodes simultaneously by clicking on any unfocused node. To remove certain nodes from the selection, hold down the Ctrl key, and click these nodes.

Notes

Node focusing is also performed in the navigation operations.

Nodes can be automatically focused when performing drag operations. To enable this capability, activate the tree list’s OptionsBehavior.DragFocusing option.

Multiple node selection is allowed if the tree list’s OptionsSelection.MultiSelect option is active.

See Also