TreeList.SelectionChanging

Syntax

SelectionChanging: function(sender, args);

Parameters

sender. Event source.

args. Event information.

Description

The SelectionChanging event is fired when an element is being selected.

Example

To execute this example, create a TreeList component named treeListSett. Add handlers for the events SelectionChanging and .SelectionChanged

treeListSett.SelectionChanged.add(function (sender, args)

{

   console.log("SelectionChanged")

});

treeListSett.SelectionChanging.add(function (sender, args)

{

   console.log("SelectionChanging")

});

After executing the example during element selection the browser console displays the message "SelectionChanging", and the message "SelectionChanged" pops up after an element has been selected.

See also:

TreeList