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
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
0
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
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.
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
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
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
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.
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.