Hi,
There is any way to uncheck a common.checkbox in Datatable programmatically ?
Hi,
There is any way to uncheck a common.checkbox in Datatable programmatically ?
Did it
function unselectRecordsPreviousTab(previousGridId) {
selected_records = [];
grid[previousGridId].data.each(function(obj){
if ( typeof obj !== 'undefined') {
if( obj.chk ) {
console.log( obj.id );
this.getItem(obj.id).chk = 0;
}
}
});
grid[previousGridId].refresh();
}
Another way is to apply the .updateItem()
method of the Datatable:
datatable.updateItem(id, {chk:0});
It immediately refreshes the data item and, if you have save serverside logic, the data will be sent to a server script.