Documentation

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(rwo, column, state){
    //code
));

Details

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

{id:"ch", template:"{common.checkbox()}", checkValue:"On", uncheckValue:"Off"}

See also

Back to top