TreeNodes.getItemValue

Syntax

getItemValue(index, name);

Parameters

index. Index of the node which property value is to be returned;

name. Name of the property which value is to be returned.

Description

The getItemValue method returns property value of nodes by index.

Example

To execute the example, the page must contain the TreeList  component named «treeList» (see Example of Creating the TreeList Component). Get the text of the first tree root node:

// Get the text of the first tree root node
console.log("Text of the first tree root node: " + treeList.getNodes().getItemValue(0, "Text"));

As a result, the text of the first root node is displayed to the console:

Text of the first tree root node: World

See also:

TreeNodes