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

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

5 Answers 122 Views
Window
This is a migrated thread and some comments may be shown as answers.
Abhi Shinde
Top achievements
Rank 1
Abhi Shinde asked on 18 Aug 2011, 11:08 AM
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.

5 Answers, 1 is accepted

Sort by
0
Kevin
Top achievements
Rank 2
answered on 18 Aug 2011, 01:12 PM
Hello Abhi,

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

I hope that helps.
0
Rory
Top achievements
Rank 1
answered on 19 Aug 2011, 12:54 AM
Hi Abhi,
Try this

ReloadOnShow

="true"

 


0
Abhi Shinde
Top achievements
Rank 1
answered on 19 Aug 2011, 03:20 PM
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..!!


0
Abhi Shinde
Top achievements
Rank 1
answered on 22 Aug 2011, 07:40 AM
I have solved that issue just by setting "EnableViewState = false" of RadWindow Manager.
0
Marin Bratanov
Telerik team
answered on 22 Aug 2011, 03:18 PM
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 >>

Tags
Window
Asked by
Abhi Shinde
Top achievements
Rank 1
Answers by
Kevin
Top achievements
Rank 2
Rory
Top achievements
Rank 1
Abhi Shinde
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or