Paging in Ajax Grid doesn't return you to top of form.

2 posts, 0 answers
  1. Laurie
    Laurie avatar
    146 posts
    Member since:
    Feb 2007

    Posted 21 May 2015 Link to this post

    When I build a server bound grid with a pager and you click to go to the next page, it returns you to the top of the page (full page refresh). With an ajax grid, it keeps you at the same location on the page that you were on originally. This is not unexpected behavior, but is there a way to get around it?

    Thanks!

    Laurie

  2. Laurie
    Laurie avatar
    146 posts
    Member since:
    Feb 2007

    Posted 21 May 2015 Link to this post

    Okay, I finally googled the right thing, and the answer is the following javascript:

    window.scrollTo(0, 0);

Back to Top