Stay the Current pagination table after reloading the data table

Stay the Current pagination table after reloading the data table

VishnuHBSVishnuHBS Posts: 20Questions: 2Answers: 0

Hi,
I'm using DataTable version 1.10.3 in java struts project. I view my user table using data table by json. it takes more than 10 pagination buttons. If i click the 5th pagination button and delete one row from that page using ajax call after reload the datatable, it moves to the 1st page of pagination. But i want ,it should be reload the table and should be stay on the same pagination of the table after delete a row.

Please help me to solve this issue.

Replies

  • allanallan Posts: 63,680Questions: 1Answers: 10,498 Site admin

    Are you using draw() to redraw the table? If so, just pass false pass the parameter to the method, per the documentation.

    Allan

  • VishnuHBSVishnuHBS Posts: 20Questions: 2Answers: 0

    Thanks allan. Its working fine.

This discussion has been closed.