TreeListBase.setSelectedFromToIndex

Syntax

moveNode(firstIndex, lastIndex, value, fireEvents, ignoreRules);

Parameters

firstIndex. Object. Node range start.

lastIndex. Object. Node range end.

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 setSelectedFromToIndex method changes the current selection for range of nodes.

Comments

The method uses the settings determined in the preserveSelection method.

Example

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

// Set selection inversion
Tree.preserveSelection(true, true);
// Change element range selection
Tree.setSelectedFromToIndex(0, 2, true)

After executing the example selection of the first three elements is inverted.

See also:

TreeListBase