Remember row selection across ajax page changes
Remember row selection across ajax page changes
Hi everyone,
I am using the Select plugin but can't seem to get it to remember which rows are selected when changes pages. I think I'll probably be able to make it work with this approach: https://datatables.net/release-datatables/examples/server_side/select_rows.html but it's a shame that I can't just use the Select plugin, especially when that works with table.ajax.reload();
- https://datatables.net/extensions/select/examples/initialisation/reload.html
Am I missing something obvious, or do I need to use the approach shown in the first link above?
Thanks for your help.
This question has an accepted answers - jump to answer
Answers
As far as I know both examples are accurate in their description. Yes, you will manually need to track the selected rows when using Server Side Processing.
Kevin
Thanks @kthorngren - I guess I thought this comment (https://datatables.net/forums/discussion/comment/49638/#Comment_49638) by @allan
suggested that this was going to be incorporated as an automatic feature a long time ago (back when TableTools was still a thing).
Anyway, great to know I haven't missed an obvious setting.