BeforeCollapse: function(sender, args);
sender. Event source.
args. Event information.
The BeforeCollapse event occurs before collapsing a tree node.
To execute this example, create a TreeList component named treeListSett. Add a handler for the BeforeCollapse event:
treeListSett.BeforeCollapse.add(function (sender, args)
{
treeListSett.deSelectAll();
});
After executing the example, all previously selected elements are deselected on clicking the icon (before the node is collapsed).
See also: