TreeListBase.NodeParent

Syntax

NodeParent: String;

Description

The NodeParent property determines parent key of the specified node.

Comments

Use the setNodeParent(nodeKey, value) method to set the property value, and the getNodeParent(nodeKey) method to get the property value.

Parameters:

nodeKey. String. Node identifier

value. String. Value.

Example

Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).

// Determine parent of the node with the 4 key
Tree.getNodeParent(4);
// -> 0

After executing the example key of the parent of the node with the 4 key is displayed.

See also:

TreeListBase