TreeListBase.getNodePosition

Syntax

getNodePosition(nodeKey);

Parameters

nodeKey. Number. Node key.

Description

The getNodePosition method returns number of the specified node.

Example

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

// Get node number
Tree.getNodePosition(4);
// -> 1

After executing the example the specified node number is obtained.

See also:

TreeListBase