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

Scrolling Issue

2 Answers 61 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Shailendra
Top achievements
Rank 1
Shailendra asked on 07 Jan 2009, 10:04 PM
Hello Everyone,

First of all, Happy New Year 2009 to everyone!

Now coming to my question, I have a page with radgrid on it. Radgrid is of fixed height and width with vertical scrolling. This page has a timer which causes postback that rebinds the grid. Everything works fine but when the grid rebinds, the scroll bar moves to the top and comes down to the previous postion which is quite irritating. Is there any way to stop this behavior? 

This behavior can be observed in this page after scrolling the grid half way down and then making a postback.

http://demos.telerik.com/aspnet-ajax/Grid/Examples/Client/Scrolling/DefaultCS.aspx



Thanks,
~SP

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 08 Jan 2009, 03:57 AM
Hi Shailendra,

Hope you have set the SaveScrollPosition attribute to true. It saves the scroll position of the Grid when postbacks occur. If so try setting it to false to prevent this behaviour.

ASPX:
<ClientSettings> 
       <Scrolling AllowScroll="True" SaveScrollPosition="True"></Scrolling> 
    </ClientSettings> 

Thanks
Shinu
0
Shailendra
Top achievements
Rank 1
answered on 08 Jan 2009, 03:53 PM
It did the job! Thanks Shinu!

~SP
Tags
Grid
Asked by
Shailendra
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Shailendra
Top achievements
Rank 1
Share this question
or