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

Saved Scrolling Position on Ajax Call.

1 Answer 74 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rory
Top achievements
Rank 1
Rory asked on 08 Mar 2008, 01:28 AM
Hi there, I am using a radgrid within an iframe. The grid is very wide and scrolls the iframe out to the right. I have turned off grid settings for scrolling and saving scroll position. So we just scroll with the iframe. I really have 2 issues.

First is that when I do an Ajax call and Radgrid.Rebind() I try to set the iframe's scroll position back to default (0,0) in the case you are scrolled off the page to the right. So when you refresh the scroll goes to (0,0) then after the rebind finishes the scroll position goes back to its saved position creating a scroll to the left then back to where it was almost like a flicker. How can I prevent this? I am using the same settings as I used pre-Prometheus and this wasn't an issue. Thanks.

The second issue is that our loading panel does extend all the way out to the right where the grid is off the page. So if you scroll all the way right and hit refresh you see only half of the loading panel. How can I extend the panel to always cover the whole grid or whole page? Thanks you for you help. 

1 Answer, 1 is accepted

Sort by
0
Missing User
answered on 11 Mar 2008, 11:14 AM
Hello Rory,

Up to your issues:

1) You can apply the solution shown in this help article.


2) You can use sticky AJAX Loading Panel setting its IsSticky property to true and use absolute positioning to show the loading panel on an exact location. More info about the loading panel you can find in the ajax documentation:



All the best,
Plamen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Rory
Top achievements
Rank 1
Answers by
Missing User
Share this question
or