Serverside data keep page after sort?
Serverside data keep page after sort?
snorkel12068
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.
This discussion has been closed.
Answers
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 inajax.data
. You could set a flag somewhere if the ordering is performed (probably an event listener on the header, or some such), and change thestart
based on that.Hope that helps,
Cheers,
Colin