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

Rad window Size problem

2 Answers 116 Views
Window
This is a migrated thread and some comments may be shown as answers.
deva
Top achievements
Rank 1
deva asked on 25 Jan 2011, 04:59 AM
Hi
     In my application i am using four  radwindow and each window performs a specific request. The problem i am experiencing is ... i have set different size and other properties for each window but sometimes when i open the radwindow all the properties i have set for that window goes off  and the window opens with that page content....
and if i refresh the main window and open the radwindow its properties are regained and working fine....
 below is my code

 

 

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true" Style="z-index: 7001" >

 

 

 

<Windows>

 

 

 

<telerik:RadWindow ID="UserListDialog" runat="server" Title="Editing record" Height="200px" DestroyOnClose="true"

 

 

 

Width="600px" Left="150px" ReloadOnShow="true" ShowContentDuringLoad="false" Modal="true" KeepInScreenBounds="True" VisibleTitlebar="False" VisibleStatusbar="False" Skin="Vista" Behaviors="Close,Move" />

 

 

 

</Windows>

 

 

 

<Windows>

 

 

 

<telerik:RadWindow ID="Details" runat="server" VisibleStatusbar="false" NavigateUrl="windowcs.aspx" DestroyOnClose="true"

 

 

 

Height="530px" Width="645px" AutoSize="false" Behaviors="Close,Move" ShowContentDuringLoad="false" Skin="Vista" Modal="true" KeepInScreenBounds="True" />

 

 

 

</Windows>

 

 

 

<Windows>

 

 

 

<telerik:RadWindow ID="UserListDialog1" runat="server" Title="Editing record" Height="200px" DestroyOnClose="true"

 

 

 

Width="600px" Left="150px" ReloadOnShow="true" ShowContentDuringLoad="false" Modal="true" Skin="Vista" VisibleTitlebar="False" VisibleStatusbar="False" KeepInScreenBounds="True" Behaviors="Close,Move" />

 

 

 

</Windows>

 

 

 

<Windows>

 

 

 

<telerik:RadWindow ID="Uow1" runat="server" Title="Upload Photos" Height="550px" DestroyOnClose="true"

 

 

 

Width="950px" ReloadOnShow="true" ShowContentDuringLoad="false" Modal="true" Skin="Vista" AutoSize="False" VisibleTitlebar="True" VisibleStatusbar="False" EnableTheming="True" Behaviors="Close,Move,Minimize" KeepInScreenBounds="True" />

 

 

 

</Windows>

 

 

 

<Windows>

 

 

 

<telerik:RadWindow ID="RadWindow1" runat="server" Title="Move record" Height="200px" DestroyOnClose="true"

 

 

 

Width="600px" ReloadOnShow="true" ShowContentDuringLoad="false" Modal="true" Skin="Vista" VisibleTitlebar="False" VisibleStatusbar="False" KeepInScreenBounds="True" Behaviors="Close,Move" />

 

 

 

</Windows>

 

 

 

<Windows>

 

 

 

<telerik:RadWindow ID="Copw" runat="server" Title="Cocord" Height="200px" DestroyOnClose="true"

 

 

 

Width="600px" ReloadOnShow="true" ShowContentDuringLoad="false" Modal="true" Skin="Vista" VisibleTitlebar="False" VisibleStatusbar="False" KeepInScreenBounds="True" Behaviors="Close,Move" />

 

 

 

</Windows>

 

 

 

<Windows>

 

 

 

<telerik:RadWindow

 

 

 

id="RadWindow2"

 

 

 

KeepInScreenBounds="true"

 

 

 

runat="server"

 

 

 

showcontentduringload="true"

 

 

 

width="650px"

 

 

 

height="550px"

 

 

 

title="Sow"

 

 

 

Modal="true"

 

 

 

behaviors="Close">

 

 

 

</telerik:RadWindow>

 

 

 

</Windows>

 

 

 

</telerik:RadWindowManager>
kindly give me a solution for making the radwindow to appear with the same properties whenever i open it...

 

2 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 25 Jan 2011, 03:49 PM
Hello Deva,

This is happening because you have set DestroyOnClose=true. When this property is set to true, RadWindow’s object will be destroyed once the window is closed. This, however,  means that you will not be able to open that same RadWindow again until the whole page is reloaded. In such scenario, it will be best to either set all needed properties (width, height, modality, etc.) to the RadWindowManager or as an alternative – to use the client-side API and set them when opening the RadWindow.

Regards,
Georgi Tunev
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
deva
Top achievements
Rank 1
answered on 28 Jan 2011, 04:15 PM
Thanks for your reply...
After setting destroyonclose to false it works
Now its working fine
Tags
Window
Asked by
deva
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
deva
Top achievements
Rank 1
Share this question
or