SMART datagrid v.1 > Classes > GridView

Back  Forward

DataLudi.GridView.onCollapsing  event

在折叠已展开的组行之前,将会触发这个事件。 

如果在这个事件处理器中明确返回false,就不会被折叠。 而且,在折叠之后,将会触发onCollapsed事件。 

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
行分组