SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.onRowCountChanged  event

It will be fired after the number of Grid Rows created in the current grid is changed. 

In other words, it will be fired when rowCount is changed, and if the top row is collapsed in grid view or tree view in which runs row grouping, the hidden descendant rows will not be included in rowCount. 

Therefore, in the case of changing descendant rows of group row or tree row in collapsed sate, it will not fire an event. However, it will be fired if group row or tree row is expanded or hidden. 

function onRowCountChanged (grid: GridBase, newCount: Integer, oldCount: Integer);
Returns
Void
Parameters
grid - GridBase.
newCount - Integer.
oldCount - Integer.
Code -1
    grdMain.onRowCountChanged = function (grid, newCount, oldCount) {
        console.log('Row Count Changed : ' + oldCount + ' -> ' + newCount);
    };
See Also
rowCount
descendantRowCount
DataSet.rowCount
DataSet.onRowCountChanged
Examples
Row Counts
Tree Row Counts