This is a migrated thread and some comments may be shown as answers.

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

1 Answer 30 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Laurie
Top achievements
Rank 2
Laurie asked on 21 May 2015, 07:11 PM

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

1 Answer, 1 is accepted

Sort by
0
Laurie
Top achievements
Rank 2
answered on 21 May 2015, 07:22 PM

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

window.scrollTo(0, 0);

Tags
Grid
Asked by
Laurie
Top achievements
Rank 2
Answers by
Laurie
Top achievements
Rank 2
Share this question
or