Save selection on table redraw
Save selection on table redraw
Ajay Madhok
Posts: 9Questions: 4Answers: 0
Hi there,
I'm using a server-side datatables with a multiple selection. The method described in this thread https://datatables.net/extensions/select/examples/initialisation/reload.html not working for me because I'm using pagination that just return data for current page, not all the data. Is it possible somehow save selected rows for all pages on table redraw?
Could you help me?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Unfortunately, there is currently no option to have row selection saved across pages when using server-side processing. The key thing to remember with server-side processing is that when you change page, the data from the previous page no longer exists on the client-side - thus it can't remain selected.
The only option really is to implement custom row selection using something like this example.
Allan
Okay, I hope this option will be in one of new releases. Thanks for help!