TreeListBase.setSelectedForChildren

Syntax

setSelectedForChildren(nodeKey, value, fireEvents, ignoreRules);

Parameters

nodeKey. String. Node key

value. Boolean. Set value.

fireEvents. Boolean. Generate selection change event. By default it is set to true.

ignoreRules. Boolean. Ignore selection rules. By default it is set to false.

Description

The setSelectedForChildren method selects all children of the specified node.

Example

Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).

// Select all children of the first node
Tree.setSelectedForChildren(0, true);

After executing the example all children of the first node are selected.

See also:

TreeListBase