NodeParent: String;
The NodeParent property determines parent key of the specified node.
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.
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: