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

Scroll to a certain position on load

1 Answer 45 Views
Window
This is a migrated thread and some comments may be shown as answers.
Benjamin
Top achievements
Rank 1
Benjamin asked on 23 Jan 2013, 07:30 AM
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?

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 24 Jan 2013, 09:23 AM
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).


Greetings,
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.
Tags
Window
Asked by
Benjamin
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or