TreeList.getAllExpandedKeys

Syntax

getAllExpandedKeys ();

Description

The getAllExpandedKeys method returns an array of keys that belong to all expanded tree nodes.

Example

To execute this example, the page must contain the TreeList component named treeListSett (seebsp; an example of the TreeList.NodeUnHovered event). Expand all nodes and set selection for the expanded nodes:

treeList.setMultiSelect(true);

treeList.expandAll();

nodes = treeList.getAllExpandedKeys();

treeList.setSelectedByKeys(nodes);

After executing the example all nodes that have children, are expanded and selected.

See also:

TreeList