setCheckedForNodeAncestors(nodeKey, value, fireEvents, ignoreRules);
nodeKey. 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 setCheckedForNodeAncestors method sets value to checkboxes of each ancestor of the specified node.
Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).
// Set checkbox values Tree.setCheckedForNodeAncestors(4, true);
After executing the example checkbox values of all ancestors of the node with the 4 key are set.
See also: