TreeListBase.SelectionChanging

Syntax

SelectionChanging: function(sender, args);

Parameters

sender. Event source.

args. Event information:

Description

The SelectionChanging event occurs before changing selection.

Example

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

// Set event
Tree.SelectionChanging.add( function(sender, args) {
  console.log("SelectionChanging event:");
  console.log(args);
});
// Initialize event
Tree.setNodeSelected(0, true);

After executing the example the SelectionChanging event is added.

See also:

TreeListBase