getRequestItemByIndex(idx);
idx. Number. Node number.
The getRequestItemByIndex method returns index of the node and its parent by their number.
Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).
// Get second node Tree.getRequestItemByIndex(1); // -> Object {Parent: "0", Index: 0}
After executing the example index of the parent and the specified node is obtained.
See also: