TreeListBase.getLastSelectedNode

Syntax

getLastSelectedNode();

Description

The getLastSelectedNode method returns key of the last selected node.

Example

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

// Select node
Tree.setNodeSelected(2, true);
// Get index of the last selected node
Tree.getLastSelectedNode();
// -> "2"

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

See also:

TreeListBase