Save selection on table redraw

Save selection on table redraw

Ajay MadhokAjay Madhok Posts: 9Questions: 4Answers: 0
edited January 2017 in Free community support

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

Answers

  • allanallan Posts: 63,839Questions: 1Answers: 10,518 Site admin
    Answer ✓

    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

  • Ajay MadhokAjay Madhok Posts: 9Questions: 4Answers: 0

    Okay, I hope this option will be in one of new releases. Thanks for help!

This discussion has been closed.