SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.onAllChecked  event

It will be fired after the user clicks check all mark of grid header or call checkAll to change the checked state of all rows. 

If it is called by user click, onAllCheck event will be fired just before the change. 

function onAllChecked (grid: GridBase, checked: Boolean);
Returns
Void
Parameters
grid - GridBase.
checked - Boolean.
Code -1
    grid.onAllChecked = function (grid, checked) {
        // If call checkAll(), it will automatically not change all check marks.
        grid.setAllChecked(checked);
    };
See Also
onAllCheck
checkAll
setAllChecked
toggleChecked
Examples
Check Bar