How to deselect all checkboxes in serverside processing datatable
How to deselect all checkboxes in serverside processing datatable
elenora
Posts: 23Questions: 10Answers: 0
Hi. I'm using datatable and it has a checkbox column. I've implemented it in server side mode. Now my question is how can I deselect all checkboxes after clicking a button? I'm using gyrocode checkbox.
This discussion has been closed.
Answers
I've used the below expression to uncheck all the checkboxes but it shows me an error: DataTables warning: table id=myDummyTable - Requested unknown parameter 'id' for row 0, column 0. For more information about this error, please see http://datatables.net/tn/4. In the header I just have headers data and a header checkbox to selectAll/deselectAll. Also this expression just deselect the checkboxes in the current active page in the datatable and other checkboxes in other pages remain checked.
table.columns().checkboxes.deselect(true);
I used table.columns().checkboxes.deselectAll(true); and it correctly uncheck all the checkboxes, However the error is remained!
Isn't this duplicating your other thread?
Colin