Scroll to a certain position on load

2 posts, 0 answers
  1. Benjamin
    Benjamin avatar
    11 posts
    Member since:
    Dec 2012

    Posted 23 Jan 2013 Link to this post

    Hi all, is there a way to set the radWindow scrolled to a certain position of the content upon load? This is because I am opening a .aspx page which have a master page. I do not want to show user the MasterPage headers. Therefore, I want to set it so that when radWindow loads, it is scrolled to below the headers and disable/hide the scrollbars. Is this possible? or is there a way around if there's a limitation?
  2. Marin Bratanov
    Marin Bratanov avatar
    3899 posts

    Posted 24 Jan 2013 Link to this post

    Hello Benjamin,

    This is not functionality of the RadWindow, but inside your own page. We do not, cannot and should not attempt to control external pages.

    You can look into the scrollTo() browser method to provide the desired offset and use that in the Sys.Application.Load event to make sure the entire page is loaded. The pageLoad JavaScript function is a shorcut to that. Another options is to use HTML anchors and append their name to the URL you pass to RadWindow (after a hash, of course).

    Marin Bratanov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top