SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.setCheckable  method

パラメーターrowで指定した行のcheckable状態を変更する。 

trueで指定した行はCheckBarセルをクリックしてchecked状態を変更することができる。 

function setCheckable (row: GridRow|Integer, checkable: Boolean, noRefresh: Boolean): Boolean;
Returns
Boolean
Parameters
row - GridRow|Integer. required.
checkable - Boolean. required.
noRefresh - Boolean. デフォルト値はfalse.
Code -1
    $('checkable').click(function () {
        var row = grid.focusedRow();
        if (row) {
            grid.setCheckable(row, true);
        }
    });
See Also
isCheckable
isChecked
setChecked
CheckBar
Examples
Check Bar