Serverside data keep page after sort?

Serverside data keep page after sort?

snorkel12068snorkel12068 Posts: 6Questions: 3Answers: 0

Hi,
I am doing serverside paging with Python Flask and it works great.
I am using the built in HTML5 state saving and that keeps the page for everything except a sort.
is there a way to keep the same page the user is on after the sort?
After a sort it goes back to the first page.

Answers

  • colincolin Posts: 15,143Questions: 1Answers: 2,586

    Hi @snorkel12068 ,

    Not easily, I'm afraid. One way that may work would be to tweak the start value in the Ajax request - you can do this in ajax.data. You could set a flag somewhere if the ordering is performed (probably an event listener on the header, or some such), and change the start based on that.

    Hope that helps,

    Cheers,

    Colin

This discussion has been closed.