State saving is working, but saving scroll position doesnt work

State saving is working, but saving scroll position doesnt work

DenonthDenonth Posts: 76Questions: 0Answers: 0
edited July 2012 in General
Hi all,

I want to be able to save my scroll position when I refresh the page.
I am using [code] "bStateSave": true [/code] and it is working correctly but my scroll position goes at the record one everytime I refresh the page.

Is there any option available for that?

Replies

  • DenonthDenonth Posts: 76Questions: 0Answers: 0
    Is there anything that can be used to save scroll state? Please help
  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    Scroll position is not currently a parameter that is state saved. Possibly it should be - I'll review this in future versions. Until then you can use fnStateSaveParams and fnStateLoadParams / fnInitComplete to add an extra parameter (the scroll position) to the state saving, read it back and then alter the scrolling position.

    Allan
This discussion has been closed.