Hi
We have recently updated a web application which was using Telerik.Web.UI version 2008.3.1314.35 to and updated the to version 2010.3.1317.35.
The application sets the RadWindowManager's DestroyOnClose="True" and opens a window using server side code. Before I updated when window's close button is clicked, the window closes and the RadWindowManager to deletes the window.
After update to version 2010.3.1317.35 the window closes but is not deleted and when the page posts back the window reappears.
An example of the mark up I use is
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager ID="QMAS2ScriptManager" runat="server" EnableTheming="True">
</telerik:RadScriptManager>
<telerik:RadWindowManager ID="DialogWindowManager" runat="server"
Modal="True" Overlay="True" VisibleStatusbar="False" ReloadOnShow="True"
ShowContentDuringLoad="False"
KeepInScreenBounds="True"
Behaviors="Resize, Close, Maximize, Move, Reload"
OnClientClose="OnClientClose"
DestroyOnClose="True"
Height="500px" Width="650px" Behavior="Resize, Close, Maximize, Move, Reload"
InitialBehavior="None" Left="" Style="display: none;" Top="">
</telerik:RadWindowManager>
<div>
<asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
</div>
<script type="text/javascript">
function OnClientClose(radWindow)
{
__doPostBack();
}
</script>
</form>
</body>
the code I use to create a new window looks like
protected void Button1_Click(object sender, EventArgs e)
{
RadWindowManager rwm = this.DialogWindowManager;
RadWindow newWindow = new RadWindow();
newWindow.NavigateUrl = "wwww.google.co.uk"; // url;// +"?sessionPrefix=" + sessionPrefix + additionalQueryStringParams;
newWindow.Title = "Test";
newWindow.VisibleOnPageLoad = true;
rwm.Height = 400;
rwm.Width = 400;
rwm.Windows.Add(newWindow);
}
Any idea why this is happening?
We have recently updated a web application which was using Telerik.Web.UI version 2008.3.1314.35 to and updated the to version 2010.3.1317.35.
The application sets the RadWindowManager's DestroyOnClose="True" and opens a window using server side code. Before I updated when window's close button is clicked, the window closes and the RadWindowManager to deletes the window.
After update to version 2010.3.1317.35 the window closes but is not deleted and when the page posts back the window reappears.
An example of the mark up I use is
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager ID="QMAS2ScriptManager" runat="server" EnableTheming="True">
</telerik:RadScriptManager>
<telerik:RadWindowManager ID="DialogWindowManager" runat="server"
Modal="True" Overlay="True" VisibleStatusbar="False" ReloadOnShow="True"
ShowContentDuringLoad="False"
KeepInScreenBounds="True"
Behaviors="Resize, Close, Maximize, Move, Reload"
OnClientClose="OnClientClose"
DestroyOnClose="True"
Height="500px" Width="650px" Behavior="Resize, Close, Maximize, Move, Reload"
InitialBehavior="None" Left="" Style="display: none;" Top="">
</telerik:RadWindowManager>
<div>
<asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
</div>
<script type="text/javascript">
function OnClientClose(radWindow)
{
__doPostBack();
}
</script>
</form>
</body>
the code I use to create a new window looks like
protected void Button1_Click(object sender, EventArgs e)
{
RadWindowManager rwm = this.DialogWindowManager;
RadWindow newWindow = new RadWindow();
newWindow.NavigateUrl = "wwww.google.co.uk"; // url;// +"?sessionPrefix=" + sessionPrefix + additionalQueryStringParams;
newWindow.Title = "Test";
newWindow.VisibleOnPageLoad = true;
rwm.Height = 400;
rwm.Width = 400;
rwm.Windows.Add(newWindow);
}
Any idea why this is happening?