SMART datagrid v.1 > Classes > GridView

Back  Forward

DataLudi.GridView.onExpanding  event

It will be fired just before expanding Group Row which has been collapsed.
 If explicitly return false, it will not be expanded. After being expanded, onExpanded event will be fired. 

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