TreeList.getAllSelectedKeys

Syntax

getAllSelectedKeys ();

Description

The getAllSelectedKeys method returns an array of key that belong to all selected tree nodes.

Example

To execute this example, the page must contain the TreeList component named treeListSett (see an example of the TreeList.NodeUnHovered event). Select all nodes and expand all selected nodes:

treeList.setMultiSelect(true);

treeList.selectAll();

nodes = treeList.getAllSelectedKeys();

treeList.setExpandedByKeys(nodes);

After execution all tree nodes are selected. All nodes that have children are expanded.

See also:

TreeList