This is a migrated thread and some comments may be shown as answers.
Panalbar Preserve scroll position
2 Answers 42 Views
This is a migrated thread and some comments may be shown as answers.
Noob2008 Noob2008
Top achievements
Rank 1
Noob2008 Noob2008 asked on 30 Jun 2009, 08:22 AM
How to Preserve the scroll position ?

For example after i click on a expansion i dont wan the scroll to jump to the top but stay on the place i expand

Kindly advise

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 02 Jul 2009, 06:05 AM
Hi,

I hope the issue is with Page scroll bar. I tried the similar scenario on my end and the page seems to maintain its scroll position while expanding the PanelBarItem. But i was able to replicate this issue when a postback occurs on expanding the panelbarItem. I resolved this issue by setting the following Page attribute.

ASPX:
 
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MyPage.aspx.cs"  MaintainScrollPositionOnPostback="true" EnableEventValidation="false" Inherits="MyPage" %> 


Thanks
Shinu
0
Noob2008 Noob2008
Top achievements
Rank 1
answered on 03 Jul 2009, 08:33 AM
Hi Shinu

Thank for the response .

I understand where you coming from but mine case , it cant be applied as i dont a\have a aspx page as i am doing it in a web part in sharepoint . I only have the .VB file as my aspx page only generate when sharepoint run and it create my page Aka web part .

Kindly advise .

Regards
Noob2008
Asked by
Noob2008 Noob2008
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Noob2008 Noob2008
Top achievements
Rank 1
Share this question
or