Show contents 

Home > Foresight Analytics Platform > Web Application and Desktop Application > Application Development and Functionality Enhancement > Developing Web Application Using DHTML Components > Working with Trees > Classes > TreeList > TreeList.BeforeExpand

TreeList.BeforeExpand

Syntax

BeforeExpand: function(sender, args);

Parameters

sender. Event source.

args. Event information.

Description

The BeforeExpand event is fired before expanding a tree node.

Example

To execute the example, create a TreeList component named treeListSett. Add a handler for the BeforeExpand event:

treeListSett.BeforeExpand.add(function (sender, args)

{

  treeListSett.selectAll();

});

After executing the example clicking the icon (before expanding the node) selects all tree nodes.

See also:

TreeList