Disable scroll after callback

7 posts, 0 answers
  1. Daniel Sim
    Daniel Sim avatar
    9 posts
    Member since:
    Nov 2009

    Posted 02 Apr 2010 Link to this post

    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
  2. Daniel Sim
    Daniel Sim avatar
    9 posts
    Member since:
    Nov 2009

    Posted 03 Apr 2010 Link to this post

    Any ideas chaps?
  3. wk
    wk avatar
    11 posts
    Member since:
    Jan 2010

    Posted 03 Apr 2010 Link to this post

    I don't really get you. Three rows of your page is added in RadGrid?

  4. Daniel Sim
    Daniel Sim avatar
    9 posts
    Member since:
    Nov 2009

    Posted 03 Apr 2010 Link to this post

    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.
  5. wk
    wk avatar
    11 posts
    Member since:
    Jan 2010

    Posted 03 Apr 2010 Link to this post

    Since these rows consist of its own usercontrol, im not sure adding MaintainScrollPositionOnPostBack = "true" in your @Page directive.
  6. Daniel Sim
    Daniel Sim avatar
    9 posts
    Member since:
    Nov 2009

    Posted 03 Apr 2010 Link to this post

    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?
  7. wk
    wk avatar
    11 posts
    Member since:
    Jan 2010

    Posted 03 Apr 2010 Link to this post

    May I know how did you set your AjaxUpdatedControl in RadAjaxManager? mind to show your code regarding RadAjaxManager ? 
Back to Top