rad window is still in memory while I close it using title bars close button.

6 posts, 0 answers
  1. Abhi Shinde
    Abhi Shinde avatar
    56 posts
    Member since:
    May 2010

    Posted 18 Aug 2011 Link to this post

    Hi,
    In my aspx page , I have more than 2 Rad windows.

    1.    we have a radWindow that opens as a popup window.
    2. This popup radWindow has a close button in title bar.
    3.     Even after the user closes this window using titlebars close button & opens another popup radwindow from altogether different link, the popup opens earlier(First) radwindow instead of opening second radwindow.

    This is causing lot of problems.
    Please advise how to fix this issue.
  2. Kevin
    Kevin avatar
    360 posts
    Member since:
    Jul 2012

    Posted 18 Aug 2011 Link to this post

    Hello Abhi,

    Have you tried setting DestroyOnClose="true" on your RadWindowManager?

    I hope that helps.
  3. Rory
    Rory avatar
    159 posts
    Member since:
    Jul 2007

    Posted 18 Aug 2011 Link to this post

    Hi Abhi,
    Try this

    ReloadOnShow

    ="true"

     


  4. Abhi Shinde
    Abhi Shinde avatar
    56 posts
    Member since:
    May 2010

    Posted 19 Aug 2011 Link to this post

    hi,
    thanks for reply...
    But both solutions mentioned above are not helpful for us.

    I tried both.

    I have found one more problem related with radWindow.


    Steps :

    1. I am opening radWindow on button inside RadGrid.
    2. I am closing radWindow using titlebars close button.
    3.  After closing radWindow whenever I tried to do pagination of RadGrid, the previously closed radwindow will get open.

    Please solve my both problems.
    I am still waiting..!!


  5. Abhi Shinde
    Abhi Shinde avatar
    56 posts
    Member since:
    May 2010

    Posted 22 Aug 2011 Link to this post

    I have solved that issue just by setting "EnableViewState = false" of RadWindow Manager.
  6. Marin Bratanov
    Admin
    Marin Bratanov avatar
    4609 posts

    Posted 22 Aug 2011 Link to this post

    Hi guys,

    Such behavior is usually observer when the VisibleOnPageLoad property is used to open the RadWindow. This is a behavior property and it effect is quite self explanatory. This is the reason why such reopening should be expected if another element does a postback (i.e. a grid paging, for example).

    There are several ways to work around it
    1) the best way is not to use this property, but inject a JavaScript function from the code-behind to open the RadWindow
    2) you can reset the VisibleOnPageLoad property back to false when needed (for example in the Page_Load event or in any other suitable event, depending on the place in the page lifecycle you set it to true)
    3) set the EnableViewState for the RadWindow to false. This will prevent all other properties from maintaining their values between postbacks as well.


    All the best,
    Marin
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Back to Top