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

Disable scroll after callback

6 Answers 167 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Daniel Sim
Top achievements
Rank 1
Daniel Sim asked on 02 Apr 2010, 03:54 PM
I simply want to disable scroll after callback.

My page contains three rows, all of fixed height, that are loaded using the ajax queue, one row at a time.

Problem is that when the user scrolls the page during callback it always jumps back up to the top then proceeds to load the next row.

Can I disable the 'maintain scroll position' functionality?

I've searched the forum but haven't found a way.

Daniel

6 Answers, 1 is accepted

Sort by
0
Daniel Sim
Top achievements
Rank 1
answered on 03 Apr 2010, 01:46 PM
Any ideas chaps?
0
wk
Top achievements
Rank 1
answered on 03 Apr 2010, 02:15 PM
I don't really get you. Three rows of your page is added in RadGrid?

0
Daniel Sim
Top achievements
Rank 1
answered on 03 Apr 2010, 02:18 PM
The page is divided into three sections (a dashboard), each with its own usercontrols. So just rows of the screen.

As they're data driven each section takes a while to load, meaning I want to load each section individually. Some sections are outside of the viewport, meaning if the user scrolls during callback the scroll returns to top- very annoying.
0
wk
Top achievements
Rank 1
answered on 03 Apr 2010, 02:42 PM
Since these rows consist of its own usercontrol, im not sure adding MaintainScrollPositionOnPostBack = "true" in your @Page directive.
0
Daniel Sim
Top achievements
Rank 1
answered on 03 Apr 2010, 02:47 PM
Thanks. But that doesn't work, because the RadAjaxManager sets the scroll position and doesn't look at this.

I've tried both  MaintainScrollPositionOnPostback="false" and "true" in the page directive.

Is there a way to disable RadAjaxManager maintain scroll position?
0
wk
Top achievements
Rank 1
answered on 03 Apr 2010, 03:11 PM
May I know how did you set your AjaxUpdatedControl in RadAjaxManager? mind to show your code regarding RadAjaxManager ? 
Tags
Ajax
Asked by
Daniel Sim
Top achievements
Rank 1
Answers by
Daniel Sim
Top achievements
Rank 1
wk
Top achievements
Rank 1
Share this question
or