onCheck

fires when a checkbox is checked or unchecked in the datatable item

void onCheck(number row,string column,number state){ ... };

Parameters

rownumberid of the row
columnstringid of the column
statenumbernew checkbox state

Example

datatable.attachEvent("onCheck", function(row, column, state){
    //code
});

Related samples

Details

Checkbox state is 0 or 1 by default, if other is not stated by the checkValue and uncheckValue properties of the column:

{id:"ch", template:"{common.checkbox()}", checkValue:"On", uncheckValue:"Off"}
Back to top
If you have not checked yet, be sure to visit site of our main product Webix web control library and page of javascript datagrid product.