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

radwindow preload

1 Answer 27 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jan
Top achievements
Rank 1
Jan asked on 09 Dec 2009, 10:05 PM
Hi,

is there some way to preload website in window. When after radWindow is opened no loading is needed?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 10 Dec 2009, 03:56 PM
Hello Jan,

 What I can suggest is the following:

1) Set big negative values for Top and Left, e.g as shown below:

<telerik:RadWindow ID="radWinBilling_Edit" runat="server" Width="300"
           Height="300" Top="-10000" Left="-10000" OnClientPageLoad="OnClientPageLoad" >

2) In the OnClientPageLoad handler move the RadWindow to the desired location (use the moveTo method or simply call center() to center the RadWindow on the screen )

3) Note, that if your RadWindow is modal, the Top and Left will not be respected. If you want to make it modal, use the set_modal method after you put the RadWindow on the desired place on teh screen.

All the best,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Window
Asked by
Jan
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or