how to select and deselect all records from the datatable when the checkbox is ticked
how to select and deselect all records from the datatable when the checkbox is ticked

Hi
Please can you help me how to get all the record being selected when I ticked Select All checkbox when Unticked the checkbox it the table record has to be deslected. Please help with suggested code. My link given below
https://jsfiddle.net/x3j5dwyv/1/
This discussion has been closed.
Answers
I suggest you use the Select Extension. In the event handler you create if the checkbox is checked then use
rows().select()
to select all rows orrows().deselect()
deselect all rows. Here is an Example using Datatables Buttons:https://datatables.net/extensions/select/examples/api/select.html
Kevin