Hi,
Setting DestroyOnClose="true" in RadWindowManager does not appear to work. The code worked okay with RadWindow 1.9 but not with 2.0.
Windows are opened using RadWindowManager and closing a window does not remove it from the manager.
Am I doing something wrong ?
Bob.
Setting DestroyOnClose="true" in RadWindowManager does not appear to work. The code worked okay with RadWindow 1.9 but not with 2.0.
Windows are opened using RadWindowManager and closing a window does not remove it from the manager.
| <telerik:RadWindowManager |
| id="RadWindowManager1" |
| VisibleOnPageLoad="true" |
| DestroyOnClose="true" |
| ShowContentDuringLoad="false" |
| Skin="Vista" |
| InitialBehaviors="Close,Maximize,Minimize,Move,Resize" |
| MinimizeZoneId="HorizontalMinimize" |
| OnClientShow = "OnClientShowRadWindow" |
| OnClientPageLoad = "OnClientPageLoadRadWindow" |
| OnClientDragStart = "OnClientDragStartRadWindow" |
| OnClientDragEnd = "OnClientDragEndRadWindow" |
| OnClientClose = "OnClientCloseRadWindow" |
| runat="server"> |
| <Windows> |
| <telerik:RadWindow ID="ModalWindow" runat="server" Behavior="None" |
| DestroyOnClose="true" Modal="true" |
| VisibleOnPageLoad="false" /> |
| </Windows> |
| </telerik:RadWindowManager> |
Am I doing something wrong ?
Bob.
5 Answers, 1 is accepted
0
Hello Bob,
Thank you for bringing this problem to our attention. I logged it in our database and we will do our best to fix it for the service pack that will appear in 2 weeks.
Your points were updated.
Kind regards,
Georgi Tunev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Thank you for bringing this problem to our attention. I logged it in our database and we will do our best to fix it for the service pack that will appear in 2 weeks.
Your points were updated.
Kind regards,
Georgi Tunev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Jose Ronaldo
Top achievements
Rank 1
answered on 21 Feb 2008, 01:21 PM
0
Hi Jose,
I checked this case again and the only scenario in which such problem can be reproduced with the current version is when the Behavior of the RadWindow is set to None:
We will fix this problem, but can you tell me is this your exact case? If it isn't, please provide more details about your setup and I will check it on our side.
Best wishes,
Georgi Tunev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
I checked this case again and the only scenario in which such problem can be reproduced with the current version is when the Behavior of the RadWindow is set to None:
| <telerik:RadWindowManager |
| id="RadWindowManager1" |
| DestroyOnClose="true" |
| runat="server"> |
| <Windows> |
| <telerik:RadWindow |
| ID="ModalWindow" |
| runat="server" |
| Behavior="None" |
| Modal="true" |
| /> |
| </Windows> |
| </telerik:RadWindowManager> |
We will fix this problem, but can you tell me is this your exact case? If it isn't, please provide more details about your setup and I will check it on our side.
Best wishes,
Georgi Tunev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Jose Ronaldo
Top achievements
Rank 1
answered on 22 Feb 2008, 07:17 PM
Hi, Georgi.
In my case, change a property don't fix the problem.
my WindowManager:
My JavaScript code for open Window:
In my case, change a property don't fix the problem.
my WindowManager:
| <telerik:RadWindowManager |
| ID="RadWindowManager1" |
| runat="server" |
| DestroyOnClose="True" |
| Modal="True" |
| Skin="Vista" |
| Behavior="Resize, Close, Maximize, Move"> |
| </telerik:RadWindowManager> |
My JavaScript code for open Window:
| <script type="text/javascript"> |
| function onNodeClicking(sender, args) |
| { |
| var node = args.get_node(); |
| var _url = node.get_attributes().getAttribute("wnd_url"); |
| var _title = node.get_attributes().getAttribute("wnd_title"); |
| if ((_url != "") && (_url != "+")) |
| { |
| //Getting rad window manager |
| var oManager = GetRadWindowManager(); |
| //Open a new window using using default settings |
| var oWnd = oManager.open(_url, "JanelaMultimedia"); |
| oWnd.setSize(800, 600); |
| oWnd.set_Title(_title); |
| oWnd.center(); |
| } |
| } |
| </script> |
0
Hi Jose,
I am not quite sure that I understand your scenario completely. Basically if you don't have RadWindows declared in the RadWindowManager, when you call radopen("myUrl","MyWindowName"), you will open a new RadWindow with ID "MyWindowName".
Now if you have set DestroyOnClose to true, when the RadWindow is closed, it's object will be destroyed and a new one will be created using the settings in the RadWindowManager. Since the previous RadWindow was created with the same settings however, there will be no difference between them.
Can you please let me know what exactly is the observed behavior on your side?
Greetings,
Georgi Tunev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
I am not quite sure that I understand your scenario completely. Basically if you don't have RadWindows declared in the RadWindowManager, when you call radopen("myUrl","MyWindowName"), you will open a new RadWindow with ID "MyWindowName".
Now if you have set DestroyOnClose to true, when the RadWindow is closed, it's object will be destroyed and a new one will be created using the settings in the RadWindowManager. Since the previous RadWindow was created with the same settings however, there will be no difference between them.
Can you please let me know what exactly is the observed behavior on your side?
Greetings,
Georgi Tunev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center