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

How to load radwindow silently in the background

5 Answers 106 Views
Window
This is a migrated thread and some comments may be shown as answers.
shad
Top achievements
Rank 1
shad asked on 27 Mar 2008, 09:39 AM
Hi,

Is there a way to load radwindow in the background without it being visible? I need load the radwindow on Page_Load but want it to remain hidden until I click the respective button for it to show.

If I set  VisibleOnPageLoad to "False", the radwindow is not loaded and starts loading only when I call the open or show methods.

Any help in this regard will by highly appreciated.

Regards ...

Arshad

5 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 27 Mar 2008, 02:50 PM
Hello Shad,

What I can suggest in your case is to load the RadWindow on Page_Load but with Top and Left properties set to a negative value (make sure that KeepInScreenBounds is set to false). This way the RadWindow will be loaded but will not be visible. Later when you wish to show the window, you can simply call its center() method.


I hope this helps.


Sincerely yours,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
shad
Top achievements
Rank 1
answered on 28 Mar 2008, 06:07 AM
Hi Georgi ,

    Thanks for your prompt reply. The approach you suggested worked brillanly. Thanks again.

May I suggest that this become a standard feature of radwindow in future releases.
0
Georgi Tunev
Telerik team
answered on 28 Mar 2008, 08:15 AM
Hi Shad,

I am glad that this solution fits your requirements. As for implementing it as a standard feature, note that this would affect the performance which will degrade if there are many windows that should be loaded like that on the page's load - which of course is undesirable. I logged your request for future consideration but at this point I cannot tell when or if we will implement it in the RadWindow control.


All the best,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Teodorico
Top achievements
Rank 1
answered on 12 May 2009, 12:56 AM
Georgi.

I tried your suggestion, but it does not work with modal windows; they are always centered.
Is there another approach to solve this?

Thanks.

0
Georgi Tunev
Telerik team
answered on 12 May 2009, 10:09 AM
Hello Teodorico,

Yes, by design a modal RadWindow will be always rendered centered on the page. What exactly is your scenario? If you want to pre-load a modal RadWindow before showing it you could do that by using the approach discussed in this thread and then, before calling the center() method, you could use the set_modal() one to make the dialog modal.


Regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Window
Asked by
shad
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
shad
Top achievements
Rank 1
Teodorico
Top achievements
Rank 1
Share this question
or