Preserve selection of rows when moving to one page to another page for server side

Preserve selection of rows when moving to one page to another page for server side

JanurajJanuraj Posts: 85Questions: 18Answers: 0

In server side datatable there are 10 rows per page.
I have updated 3rd row in the first page and clicked on the next page .
Again i moved to first page, but not able to see the selection and updated data
Is there any way that i can preserve the selection ?

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    Are you using Editor? If not, then yep, any data you change in the table will be local, and will be over-written when the server sends its next page data. Editor sends this data back to the server, but without it, you'll need to implement that code yourself.

    Colin

  • JanurajJanuraj Posts: 85Questions: 18Answers: 0
    edited November 2020

    Without editor , I need to implement it on my own. Will editor support this functionality

    Is my understanding correct?

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    Editor will do that - you can verify that with this example here. You'll see after each edit the data is sent to the server, and the server-side scripts update the database.

    Colin

This discussion has been closed.