SMART datagrid v.1 > Classes > GridBase
DataLudi.GridBase.onDisplayRowCountChanged event
当显示在当前画面上的网格行数,也就是说,当displayRowCount发生变更时,将会触发这个事件。
function onDisplayRowCountChanged (grid: GridBase, newCount: Integer, oldCount: Integer);
- Returns
- Void
- Parameters
- grid - GridBase.
- newCount - Integer.
- oldCount - Integer.
Code -1
grid.onDisplayRowCountChanged = function (grid, newCount, oldCount) {
console.log('Display row count changed: ' + newCount);
};
- See Also
- displayRowCount
- rowCount
- onRowCountChanged
- Examples
- 行计数
- 树行计数