setCheckedForNodes(nodes, value, fireEvents, ignoreRules);
nodes. Array. Array of node keys.
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 setCheckedForNodes method sets value to checkboxes of the specified nodes.
Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).
// Set checkbox values Tree.setCheckedForNodes([4, 1, 2], true);
After executing the example checkbox values are set for the specified nodes.
See also: