setExpandedForNodeAncestors(nodeKey, value, fireEvents, ignoreRules);
noeKey. String. Node key
value. Boolean. Set value.
fireEvents. Boolean. Generate event on value changed. By default it is set to true.
ignoreRules. Boolean. Ignore rules. By default it is set to false.
The setExpandedForNodeAncestors method sets expander values to each ancestor of the specified node.
Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).
// Expand all nodes of ancestors of the nodes with the 4 key Tree.setExpandedForNodeAncestors(4, true);
After executing the example all ancestors' nodes of the node with the 4 key are expanded.
See also: