SMART datagrid v.1 > Classes > TreeView

Back  Forward

DataLudi.TreeView.onExpanding  event

It will be fired just before expanding the Tree Row

If explicitly return false within this event handler, it will not be expanded. After expanding the row, onExpanded event will be fired. 

function onExpanding (tree: TreeView, row: TreeRow);
Returns
Void
Parameters
tree - TreeView.
row - TreeRow.
Code -1
    tree.onExpanding = function (tree, row) {
        var v = row.getData('state');
        if (v == 'x') return false;
    };
See Also
onExpanded
onCollapsing
onCollapsed
GroupRow.expanded
TreeRow.hasChildren
Tree Overview
Examples
Hello Tree