SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.setAllChecked  method

Set checked state of check cells of the entire row displayed in head area of grid check bar. 

You can check the current state through isAllChecked

function setAllChecked (checked: Boolean);
Returns
Void
Parameters
checked - Boolean. required.

 

Code -1
    // If checked of one row is false, it will change the entire state to false.
    grid.onRowChecked = function (grid, row, checked) {
        if (!checked) {
            grid.setAllChecked(false);
        }
    };
See Also
isAllChecked
onRowChecked
Examples
Check Bar