setCheckedForAll(value, fireEvents, ignoreRules);
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 setCheckedForAll method sets values to all tree checkboxes.
Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).
// Set checkbox value to all nodes. Tree.setCheckedForAll(true);
After executing the example values are set to all tree checkboxes.
See also: