Oct 18, 2010, 11:48 AM
[CLOSED] Bug with Window and Iframe mode
Hi
Please try this example, the second time the window is opened the contet does not show correctly.
Mikael
Please try this example, the second time the window is opened the contet does not show correctly.
<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
if (!X.IsAjaxRequest)
{
}
}
protected void OpenWindow(object sender, DirectEventArgs e)
{
Window2.AutoLoad.Mode = LoadMode.IFrame;
Window2.AutoLoad.Url = "Test3.aspx";
Window2.Hidden = false;
Window2.LoadContent();
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Ext.Net Example</title>
</head>
<body>
<form id="Form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<ext:Button runat="server" Text="Open window" ID="btnOpen"><DirectEvents><Click OnEvent="OpenWindow"></Click></DirectEvents></ext:Button>
<ext:Window
ID="Window2"
runat="server"
Hidden="true"
Maximizable="true"
Collapsible="true"
Resizable="false"
Width="760"
Height="380"
MinWidth="760"
MinHeight="380"
AnchorHorizontal="95%"
AnchorVertical="95%"
InitCenter="true"
Title="Beställning"
Icon="CartAdd"
AnimateTarget="btnOpen"
Modal="true">
<AutoLoad ShowMask="true"></AutoLoad>
</ext:Window>
</form>
</body>
</html>
Test3.apsx<%@ Page Language="C#" ValidateRequest="false" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Ext.NET Example</title>
</head>
<body>
<form id="Form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<ext:Panel ID="pnlOrderDetails" runat="server" Header="true" Border="true" Title="Title" Layout="Form" AutoScroll="false" Height="220" BodyStyle="padding-left:4px;padding-top:10px;" >
<Items>
<ext:Container ID="Container1" runat="server" Layout="Column" Height="190" >
<Items>
<ext:Container ID="Container2" runat="server" LabelAlign="Left" ColumnWidth=".5" Layout="Form">
<Items>
<ext:TextField runat="server" AllowBlank="false" FieldLabel="Textfield" AnchorHorizontal="95%"></ext:TextField>
</Items>
</ext:Container>
</Items>
</ext:Container>
</Items>
</ext:Panel>
</form>
</body>
</html>
ThanksMikael