TreeListBase.setCheckedForNodes

Syntax

setCheckedForNodes(nodes, value, fireEvents, ignoreRules);

Parameters

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.

Description

The setCheckedForNodes method sets value to checkboxes of the specified nodes.

Example

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:

TreeListBase