Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1060
Vertical scroll postion lost after async postback on UltraWebGrid
posted

Hi - I'm using the latest UltraWebGrid 9.2.20092.1003 on ASP.Net 3.5 & IE browser.

The problem is I have an UltraWebGrid in an UpdatePanel with a fixed height as defined in the <FrameStyle> section - because I always want my column headings to be visible and just have the rows scroll up/down as needed.  If I scroll down enough so the top rows are no longer visible, then make some change on the grid that triggers an async postback, after the postback has finished the grid scrolls back to the top!

Is there a setting I can change...or is this a bug?  I've similar posts from some time back with suggestions about storing the value in hidden fields and then setting some timeout to kick in after the postback...but that does seem a bit fiddly for what should be a simple thing for you guys to fix...so is this still a problem...or is there an easy tweak I can do?

 

thanks in advance!

  • 15
    posted

    I'm experiencing the same problem too. Not only async postback and vertical scroll position, a mere change of page using the pager to display more data will also reset the scroll position of the browser window to the top left of the grid, both vertical and horizontal scroll positions are affected.

    Is there any way to preserve the scroll position of the browser window after an async postback inside an update panel or a built-in xmlhttprequest of the grid (which can be triggered by sorting, changing pages, etc)?

    Thanks