moveNode(firstIndex, lastIndex, value, fireEvents, ignoreRules);
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.
The setSelectedFromToIndex method changes the current selection for range of nodes.
The method uses the settings determined in the preserveSelection method.
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: