TreeList.BeforeCollapse

Syntax

BeforeCollapse: function(sender, args);

Parameters

sender. Event source.

args. Event information.

Description

The BeforeCollapse event occurs before collapsing a tree node.

Example

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:

TreeList