expandToNode (treeNode);
treeNode. Tree node up to which the user need to open all tree nodes.
The expandToNode method expands all nodes down to a specified one.
To execute this example, the page must contain the TreeList component named treeListSett (see an example for the TreeList.NodeUnHovered event). Expand the tree down to the node with the key n3, and set edit mode for this node in the first column:
var node = treeList.getNodeByKey("n3");
treeList.expandToNode(node);
treeList.startEditing(node, 0);
After executing the example the component looks as follows:
See also: