TreeList.setSelectedByKeys

Syntax

setSelectedByKeys (keys, clearSelection, fireEvents);

Parameters

keys. Array that contains keys of the nodes to be selected.

clearSelection. Determines if the previous selection must be removed. If this parameter is set to true, the previous selection is reset. By default the previous selection remains.

fireEvents. Determines if the TreeList.SelectionChanged event is generated on calling the method.

Description

The setSelectedByKeys method sets selection for all tree nodes with specified keys.

Example

The example of method use is given in description of the TreeList.EnableHighlight property.

See also:

TreeList