SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.onCheckedChanged  event

It will be fired if call toggleChecked to change Checked state of one or more rows. 

onRowsChecked event will be fired when the checked state of multiple rows are changed to the same value at the same time by calling checkRows

function onCheckedChanged (rows: [GridRow]);
Returns
Void
Parameters
rows - [GridRow].
The array of Grid Rows which checked state has been switched.
Code -1
    grid.onCheckedChanged = function (grid, rows) {
        console.log(rows);
    };
    
    // If the user clicks check all cell, it will change Checked of all rows.
    grid.onAllCheck = function (grid, checked) {
        grid.toggleChecked();
        return false;
    };
See Also
toggleChecked
onAllCheck
Examples
Check Bar