fires when a checkbox is checked or unchecked in the datatable item
row | number | the id of the row |
column | string | the id of the column |
state | number | the new checkbox state |
datatable.attachEvent("onCheck", function(row, column, state){
//code
});
A checkbox state is 0 or 1 by default. You can change it with the checkValue and uncheckValue properties of the column:
{id:"ch", template:"{common.checkbox()}", checkValue:"On", uncheckValue:"Off"}
Back to top