TreeList.Collapse

Syntax

Collapse: function(sender, args);

Parameters

sender. Event source.

args. Event information.

Description

The Collapse event occurs on collapsing component nodes.

Example

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:

TreeList