getRequestParentByIndex(idx);
idx. Number. Node number.
The getRequestParentByIndex method returns parent index by node's number.
Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).
// Get second node's parent Tree.getRequestParentByIndex(1); // -> "0"
After executing the example the specified node parent's index is obtained.
See also: