TreeListBase.getRequestParentByIndex

Syntax

getRequestParentByIndex(idx);

Parameters

idx. Number. Node number.

Description

The getRequestParentByIndex method returns parent index by node's number.

Example

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:

TreeListBase