SelectionChanging: function(sender, args);
sender. Event source.
args. Event information.
The SelectionChanging event is fired when an element is being selected.
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: