TreeListBase.getRequestItemByIndex

Syntax

getRequestItemByIndex(idx);

Parameters

idx. Number. Node number.

Description

The getRequestItemByIndex method returns index of the node and its parent by their number.

Example

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:

TreeListBase