TreeListBase.setCheckedForAll

Syntax

setCheckedForAll(value, fireEvents, ignoreRules);

Parameters

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.

Description

The setCheckedForAll method sets values to all tree checkboxes.

Example

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:

TreeListBase