locked
scrolling and paging RRS feed

  • Question

  • i have list with a maximum paging numer of 10 items, when having more than 10 items i have to go to another page, when i move to the second page the view of the second page starts from the buttom, the scroll is down the page, i want it to be automatically at the top

     

    i think it have sthg to do with mantain scroll positon on postback

    Sunday, March 13, 2011 10:36 AM

Answers

  • That is SharePoint standard behavior. You could change that by adding this javascript to your page:

    function pageScroll() {
      	window.scrollBy(0,0); 	}
    

    Let a body:onload call the function to do it automatically


    Regards, Marijn Somers|| SharePoint Consultant- MCTS SharePoint 2007, 2010 configuring http://www.beyond-it.be || Twitter: http://twitter.com/marijnsomers || http://marijnsomers.blogspot.com
    • Proposed as answer by Marijn SomersMVP Monday, March 14, 2011 8:26 AM
    • Marked as answer by Lily Wu Wednesday, March 23, 2011 9:03 AM
    Monday, March 14, 2011 8:26 AM