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

RadWindow uses defaults on 2nd load

2 Answers 48 Views
Window
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 24 Jan 2011, 04:37 PM
I have defined the RadWindowManger, and RadWindow like the following:

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" 
DestroyOnClose="true" Opacity="99" RegisterWithScriptManager="true" 
<BR>                                
ReloadOnShow="true" Behaviors="Close" Modal="true" VisibleOnPageLoad="false" 
Skin="Hay" AutoSize="true" 
<BR>                                
ShowContentDuringLoad="false"><BR><Windows><BR>  
<telerik:RadWindow ID="Window1" AutoSize="false" Height="650px" Width="550px" 
runat="server" Behaviors="None"></telerik:RadWindow><BR>  
<telerik:RadWindow ID="Window2" AutoSize="false" Height="650px" 
Width="1000px" runat="server" 
Behaviors="Close,Resize"></telerik:RadWindow><BR></Windows><BR></telerik:RadWindowManager>

When I open the window the first time, it works correctly.  I then close the window, and try to open the window a 2nd time.  It now ignores the specific <telerik:Radwindow> settings, and uses the settings in the <telerik:RadWindowManager> instead.  Any work around for this (2009q3)?

window.radopen("MyCoolPage.aspx", "Window1");

Thank you.

2 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 24 Jan 2011, 05:02 PM
Hello Greg,

 When you set DestroyOnClose to true this means that the RadWindow client object will be destroyed the first time you close the RadWindow. That is why when you open it again there is not such a client object found and the manager creates a new one with its settings.

Please, set explicitly DestroyOnClose to false for the separate RadWindows you have declared and this should override the manager's setting so that you will get the behavior you desire.


Regards,

Svetlina
the Telerik team

 

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Greg
Top achievements
Rank 1
answered on 24 Jan 2011, 06:03 PM
Svetlina,

Thank you for the prompt response.  This resolves my issue.

Greg.
Tags
Window
Asked by
Greg
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Greg
Top achievements
Rank 1
Share this question
or