SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.onAllCheck  event

It will be fired just before the user clicks check all mark of grid header to change the checked state of all rows. 

If explicitly return false within this event handler, it will cancel checked state change. onAllChecked event will be fired after the change. In addition, if directly call checkAll, it will not be fired. 

function onAllCheck (grid: GridBase, checked: Boolean);
Returns
Void
Parameters
grid - GridBase.
checked - Boolean.
Code -1
    // If click check all, it will toggle the checked state of all rows.
    grid.onAllCheck = function (grid, checked) {
        grid.toggleChecked(null);
        return false;
    };
See Also
onAllChecked
toggleChecked
checkAll
setAllChecked
Examples
Check Bar