getNodePosition(nodeKey);
nodeKey. Number. Node key.
The getNodePosition method returns number of the specified node.
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: