How to load radwindow silently in the background

6 posts, 0 answers
  1. shad
    shad avatar
    8 posts
    Member since:
    Jun 2006

    Posted 27 Mar 2008 Link to this post

    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

  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 27 Mar 2008 Link to this post

    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
  3. shad
    shad avatar
    8 posts
    Member since:
    Jun 2006

    Posted 28 Mar 2008 Link to this post

    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.
  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 28 Mar 2008 Link to this post

    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
  5. Teodorico
    Teodorico avatar
    39 posts
    Member since:
    Feb 2009

    Posted 11 May 2009 Link to this post

    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.

  6. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 12 May 2009 Link to this post

    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.
Back to Top