SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.setCheckable  method

Change checkable state of the row specified by parameter row

You can change checked state of the row specified by true by clicking CheckBar cell. 

function setCheckable (row: GridRow|Integer, checkable: Boolean, noRefresh: Boolean): Boolean;
Returns
Boolean
Parameters
row - GridRow|Integer. required.
checkable - Boolean. required.
noRefresh - Boolean. Defaults to false.
If it is true, even if actually change checkable state, it will not draw again. (ver 1.3.5)
Code -1
    $('checkable').click(function () {
        var row = grid.focusedRow();
        if (row) {
            grid.setCheckable(row, true);
        }
    });
See Also
isCheckable
isChecked
setChecked
CheckBar
Examples
Check Bar