SMART datagrid v.1 > Classes > TreeView

Back  Forward

DataLudi.TreeView.expandAll  method

It has child row and expands all collapsed rows. 

If parameter level is greater than 0, it will expand only the rows of which Tree Row level is this value. Individual onCollapsing, onCollapsed events will not be fired. 

function expandAll (level: Integer);
Returns
Void
Parameters
level - Integer. Defaults to 0.
Code -1
    $('#btnExpandAll').click(function () {
        tree.expandAll();
    });
See Also
onCollapsing
onCollapsed
collapseAll
collapsed
Tree Overview
Examples
Hello Tree