SMART datagrid v.1 > Classes > GridView

Back  Forward

DataLudi.GridView.onCollapsing  event

It will be fired just before collapsing Group Row which has been expanded. 

If explicitly return false within this event handler, it will not be collapsed. And, after being collapsed, onCollapsed event will be fired. 

function onCollapsing (grid: GridView, group: GroupRow): Boolean;
Returns
Boolean
Parameters
grid - GridView.
group - GroupRow.
Code -1
    grid.onCollapsing = function (grid, group) {
        if (group.getChild(0).getData('state') == 'x') {
            return false;
        }
    };
See Also
expand
collapse
onCollapsed
onExpanding
onExpanded
GroupRow
Examples
Row Grouping