TreeListBase.getLastExpandedNode

Syntax

getLastExpandedNode();

Description

The getLastExpandedNode method returns key of the last expanded node.

Example

Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).

// Expand node
Tree.setNodeExpanded(0, true);
// Get index of the last expanded node
Tree.getLastExpandedNode()
// -> "0"

After executing the example key of the last expanded node is obtained.

See also:

TreeListBase