SMART datagrid v.1 > Classes > GridBase
DataLudi.GridBase.onAutoFilled event
It will be fired after the auto fill is committed.
function onAutoFilled (grid: GridBase, selection: SelectionItem, dir: String, idx1: CellIndex, idx2: CellIndex);
- Returns
- Void
- Parameters
- grid - GridBase.
- selection - SelectionItem.
Fill original selection area.
- dir - String.
Fill direction. "down" or "up".
- idx1 - CellIndex.
The starting location of fill area.
- idx2 - CellIndex.
The ending location of fill area.
Code -1
grid.onAutoFilled = function (grid, selection, dir, idx1, idx2) {
var r1 = Math.min(idx1.rowIndex);
var r2 = Math.max(idx2.rowIndex);
grid.checkAll(false);
for (var r = r1; r <= r2; r++) {
grid.setChecked(r, true);
}
});
- See Also
- autoFill
- AutoFill
- Examples
- Column Footer