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

[Solved] Scroll position is getting reset after a postback

3 Answers 319 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Denis
Top achievements
Rank 1
Denis asked on 23 May 2008, 04:24 PM
I am using RadControls for ASP.NET AJAX 2008 Q1. I have a RadGrid inside an UpdatePanel and use the EditForms edit mode. Everything works fine in Firefox, but when I use IE7 and try to edit a row that is not initially visible on the page and requires scrolling, the edit form gets open and I can see it for a moment, but then the page scrollbar moves all the way to the top.

That obviously makes it very confusing to the users since they cannot see the edit form and have to scroll down to use it.

Furthermore, when I click on the Save button on my edit form, if validation fails and the form stays open, the page again resets the scrollbar position all the way to the top.

3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 27 May 2008, 08:11 AM
Hello Ayana,

Please review the following topic which elaborates on this matter. Test the provided solution and let us now whether this helps.

Best regards,
Maria Ilieva
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Denis
Top achievements
Rank 1
answered on 27 May 2008, 02:08 PM
That solution does not address my problem. I don't have a scrollable grid or div. The scrollbar shows up for the page. I actually tried doing something like that anyway by setting scroll position for the current window in EndRequestHandler, but that does not fix the problem.

To see exactly what was happening, I added an alert() after setting the scroll position. The that alert message box is displayed, I can see the scroll bar in the right position, but then when I click ok, it resets back to the top of the page.

Again, that's only the issue in IE. It works fine in Firefox.
0
Yavor
Telerik team
answered on 28 May 2008, 12:58 PM
Hello Ayana,

To properly address the question at hand, it would be best if you open a formal support ticket, and supply the particular implementation. We will review it locally, and provide additional feedback, on the precise approach to handle the desired functionality.

Best wishes,
Yavor
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Denis
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Denis
Top achievements
Rank 1
Yavor
Telerik team
Share this question
or