I have the fallowing problem :
Added RestrictionZoneID and MinimizeZoneID for RadWindowManager in 2 div's
When i run the code and open a window and then minimize it , if i resize the browser the minimzed window change location or disappers completly.
I manage to pin point the problem with chrome dev tools ....
the problem is the style of the wrapper div inside the minimize zone ... is doing the calculations wrong (position , left and top).
please check the code bellow:
Default.aspx
Default.cs
Added RestrictionZoneID and MinimizeZoneID for RadWindowManager in 2 div's
When i run the code and open a window and then minimize it , if i resize the browser the minimzed window change location or disappers completly.
I manage to pin point the problem with chrome dev tools ....
the problem is the style of the wrapper div inside the minimize zone ... is doing the calculations wrong (position , left and top).
please check the code bellow:
Default.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="multiple_windows_from_code_behind_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
asp:ScriptManager
ID
=
"Scriptmanager1"
runat
=
"server"
/>
<
telerik:RadWindowManager
runat
=
"server"
ID
=
"RadWindowManager1"
RestrictionZoneID
=
"main"
MinimizeZoneID
=
"bar"
DestroyOnClose
=
"true"
>
</
telerik:RadWindowManager
>
<
asp:UpdatePanel
ID
=
"Updatepanel1"
runat
=
"server"
UpdateMode
=
"Conditional"
>
<
ContentTemplate
>
<
asp:Button
ID
=
"Button1"
Text
=
"open a new RadWindow from the server"
OnClick
=
"Button1_Click"
runat
=
"server"
/>
</
ContentTemplate
>
</
asp:UpdatePanel
>
<
script
type
=
"text/javascript"
>
function opeNewRadWindow(url) {
owin = radopen(url, null);
}
</
script
>
<
div
id
=
"main"
style
=
"border: 1px solid green; width:auto; height:600px;"
></
div
>
<
div
id
=
"bar"
style
=
"border: 1px solid red; width:auto; height:40px;"
></
div
>
</
form
>
</
body
>
</
html
>
Default.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class multiple_windows_from_code_behind_Default : System.Web.UI.Page
{
protected void Button1_Click(object sender, EventArgs e)
{
string url = "someurl.aspx?pageid=999"; //built the URL here
ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "testing", "opeNewRadWindow" + "(\"" + url + "\");", true);
}
}