SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.onRowsChecked  event

It will be fired when checked state of multiple Grid Rows is changed. 

When the state of a single row is changed, onRowChecked event will be fired. And, in the case of calling toggleChecked, onCheckedChanged rather than this event will be fired. 

function onRowsChecked (grid: GridBase, rows: [GridRow], checked: Boolean);
Returns
Void
Parameters
grid - GridBase.
rows - [GridRow].
checked - Boolean.
Code -1
    grid.onRowChecked = function (grid, rows, checked) {
        for (var i = 0; i < rows.length; i++) {
            console.log(rows[i] + "No. row checked : " + checked);
        }
    };
See Also
GridRow
checked
checkRows
toggleChecked
onRowChecked
onCheckedChanged
Examples
Check Bar
Checkable Expression & Callback