Stopping auto scroll on pager functionality

Barry Maxwell asked on March 11, 2021 16:45

When selecting on the new page number on the bottom of a search results page, the new page loads with the original scroll position of the bottom of the page. How do I get it to return to the top of the page?

I've tried javascript in a page load with a window.scroll to set a new position but this doesn't seem to work.

Recent Answers


Jeroen Fürst answered on March 15, 2021 08:36

Hi Barry,

Assuming that you are using the Universal Pager web part, have you tried setting the ResetScrollPositionOnPostBack property?

Cheers, Jeroen

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.