How to save only page number in save state?

How to save only page number in save state?

asadnaeemasadnaeem Posts: 4Questions: 1Answers: 0

Hi,
Say, I have 50 rows and each page is showing 10 rows so there are 5 pages in the datatable. But If I am on page 3 and I delete any records and reload the data in the grid using ajax hit. I am expecting it to bring on the same page. Is it possible?

Regards
Asad Naeem

Answers

  • kthorngrenkthorngren Posts: 21,352Questions: 26Answers: 4,955

    Sounds like you are using ajax.reload()? If so the second example in the docs show how to stay on the same page.

    Kevin

  • vishwesh3062vishwesh3062 Posts: 1Questions: 0Answers: 0

    @kthorngren second example is not working for me.

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

    @vishwesh3062 We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

Sign In or Register to comment.