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

After edit, page scrolls to bottom

2 Answers 110 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John Davis
Top achievements
Rank 2
John Davis asked on 28 Jun 2008, 03:15 PM

I don't know whether this is a Telerik issue but it is only occuring when I use Radgrid.
After the user does Edit followed by Update or Cancel, when the web page is displayed again it is scrolled to the bottom.
The user sees nothing but the "Ready" that is at the bottom of the Radgrid.
It confuses the user because it appears the page contains only the Radgrid having no data.
How can we make the page be scrolled at the top after an edit operation?

These techniques did not work:

http://aspnet.4guysfromrolla.com/articles/111407-1.aspx

http://msdn.microsoft.com/en-us/library/system.web.ui.page.maintainscrollpositiononpostback.aspx

 John (Steve)

2 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 01 Jul 2008, 08:11 AM
Hello John,

I tried to replicate the issue you describe but my attempts were not successful (see the enclosed project). Note that I ajaxified the grid via RadAjaxManager and the scroll position should be maintained after edit/update/cancel operation as expected. If you disable the ajax the scroll position will be reset to the top when one of these actions is processed.

Can you please confirm this behavior on your machine? Any further details regarding your grid configuration settings can lead us to the source of the issue to eliminate it asap.

Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
John Davis
Top achievements
Rank 2
answered on 01 Jul 2008, 07:20 PM
Yes it seems likely Ajax is causing the problem with scrolling.  Also I saw this post that seems related.
http://www.telerik.com/community/forums/thread/b311D-bedhdt.aspx

In my case the solution in the above post does not apply directly because the Ajax manager is in a master page and I have user controls for almost everything in the project. It looks like solving the scrolling requires complex code. Until I learn a simpler solution I will just put a label under the Radgrid saying "scroll up" so the user will not be lost when presented a page showing nothing but the "ready" as the bottom of the Radgrid.
Tags
Grid
Asked by
John Davis
Top achievements
Rank 2
Answers by
Sebastian
Telerik team
John Davis
Top achievements
Rank 2
Share this question
or