after reopen radwindow page_load not fired

10 posts, 0 answers
  1. bankey
    bankey avatar
    19 posts
    Member since:
    Apr 2008

    Posted 30 Aug 2008 Link to this post

    first time page_load fired when page loaded in the radwindow using closeonreload() .
    if I am again opening same form in radwindow page_load not fired and session not refreshed.
    Can be any idea or code to rectify the issue?
    Thanks
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 01 Sep 2008 Link to this post

    Hi bankey,

    By design, when a RadWindow is closed, it is not destroyed but remains hidden - this is done to provide the caching feature of the control. That is the reason why your page_load event is not fired when the window is re-opened.

    When you need to destroy the popup and open a fresh one, I suggest to set the DestroyOnClose property to true. Note however that in this case, you will not be able to open the same RadWindow again (e.g. with the user-defined height, width, etc. properties). If you use DestroyOnClose, it is best to move all the user-defined properties to the RadWindowManager and open the windows with radopen().

    Kind regards,
    Georgi Tunev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. puru
    puru avatar
    16 posts
    Member since:
    Sep 2008

    Posted 02 Sep 2008 Link to this post

    Hi,
    Previously  DestroyOnClose property to true. and I have opned it using radopen. but issue not resolved.
    Can you provide code and other details. so can page would be closed.
    Thanks
  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 02 Sep 2008 Link to this post

    Hi puru,

    To be able to help we will need to have a better view over your exact setup and code.

    Please open a support ticket and send us a small sample project that reproduces the problem. Just make sure that the project can be run locally and attach it to the support thread - we will check it and do our best to help.


    Kind regards,
    Georgi Tunev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. Nicolaï
    Nicolaï avatar
    160 posts
    Member since:
    Apr 2008

    Posted 24 Nov 2008 Link to this post

    Exact same problem... Sent a support ticket... Hoping for an answer..

    EDIT:
    Well, 5 minutes after the support ticket and post, I found this:
    http://www.telerik.com/community/forums/aspnet/window/page-load-executed-only-the-first-time.aspx#684944

    Summary: add a random to url to open:
    &rnd=" + Math.random());


  6. Jay
    Jay avatar
    25 posts
    Member since:
    Nov 2007

    Posted 25 May 2010 Link to this post

    why is the Math.random required if the Destroy On Close property is set to true?

    Please explain...is the the window still in cache? or is it truly gone?
  7. Nicolaï
    Nicolaï avatar
    160 posts
    Member since:
    Apr 2008

    Posted 25 May 2010 Link to this post

    I'm still forced to use the random with last version at this post's date...
  8. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 28 May 2010 Link to this post

    Hi Nicolai,

    I was not able to reproduce the descried behavior. Could you please rework my test project in order to replicate the issue, open a new support ticket and send it back? I will check it and do my best to provide a working solution as soon as possible.

    All the best,
    Fiko
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  9. Hock Sing Ting
    Hock Sing Ting avatar
    3 posts
    Member since:
    Feb 2010

    Posted 23 Sep 2010 Link to this post

    Hi,
            How to set destroyonclose="true" using javascript?
  10. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 23 Sep 2010 Link to this post

    Hello Hock Sing Ting,

    You cannot set DestroyOnClose via JavaScript - this is possible only from codebehind or in the markup. Could you tell me why you need to do that?

    Regards,
    Georgi Tunev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top