ExpansionChanging: function(sender, args);
sender. Event source.
args. Event information:
Value. Boolean. Expander state.
Node. String. Node identifier.
Cancel. Boolean. If this property is set to true in the event handler, expander is not changed.
The ExpansionChanging event occurs before changing expander value.
Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).
// Set event
Tree.ExpansionChanging.add( function(sender, args) {
console.log("ExpansionChanging event:");
console.log(args);
});
// Initialize event
Tree.setNodeExpanded(0, true);
After executing the example the ExpansionChanging event is added.
See also: