SMART datagrid v.1 > Classes > TreeView

Back  Forward

DataLudi.TreeView.expand  method

It expands Tree Row which has been specified by parameter row

If parameter recursive is true, it will also expand descendant rows. onExpanding event will be fired before expanding, and onExpanded event will be fired after expanding. If it is a row which has already been expanded, it will expand descendant rows only when force is true

function expand (row: TreeRow, recursive: Boolean, force: Boolean);
Returns
Void
Parameters
row - TreeRow. required.
recursive - Boolean. Defaults to false.
force - Boolean. Defaults to false.
Code -1
    $('#btnExpand').click(function () {
        var row = tree.focusedRow();
        row && tree.expand(row, true, true);
    });
See Also
collapse
GroupRow.expanded
Tree Overview
Examples
Hello Tree