Collapse: function(sender, args);
sender. Event source.
args. Event information.
The Collapse event occurs on collapsing component nodes.
To execute this example, create a TreeList component named treeListSett. Add a handler for the Collapse event:
treeListSett.Collapse.add(function (sender, args)
{
treeListSett.setHeight(treeListSett.getFullTreeHeight());
});
After executing the example on collapsing the node the component is set to the height equal to the tree height (considering the collapsed node).
See also: