Retaining checkbox selections in a DataTable backed by an HTML table (client-side only)
Retaining checkbox selections in a DataTable backed by an HTML table (client-side only)
Hi there
I have a checkbox on each row in my table. When a row is checked (i.e., selected) and the user navigates to a different page, I want that selection to be persisted somehow, so that when the user returns to the original page the selection is as it was before.
It looks like DataTables creates its own representation of the contents of the table in the original DOM, and keeps an internal cache of what it has converted to this representation so far.
I tried using the fnDataUpdate() function to alter the internal data, but this did not work.
Some pointers would be really appreciated! Thanks.
I have a checkbox on each row in my table. When a row is checked (i.e., selected) and the user navigates to a different page, I want that selection to be persisted somehow, so that when the user returns to the original page the selection is as it was before.
It looks like DataTables creates its own representation of the contents of the table in the original DOM, and keeps an internal cache of what it has converted to this representation so far.
I tried using the fnDataUpdate() function to alter the internal data, but this did not work.
Some pointers would be really appreciated! Thanks.
This discussion has been closed.