Apr 24, 2013, 3:24 AM
[CLOSED] Upgrade 2.1.1 to 2.2 Ext.Window Issue
Cannot Show Window on Parent
When I Call Ext.Net.X.Js.Call("ShowParentWin", Par) is success on 2.1.1 , after upgrade to 2.2 is fail (empty window and close btn no response) . but back to 2.1.1 is work correctly.
When I Call Ext.Net.X.Js.Call("ShowParentWin", Par) is success on 2.1.1 , after upgrade to 2.2 is fail (empty window and close btn no response) . but back to 2.1.1 is work correctly.
<script type="text/javascript">
var ShowParentWin = function (strTitle, strURL, intWidth, intHeight) {
//alert(strURL);
win = new parent.Ext.Window({
id: 'myWindow',
title: strTitle,
minimizable: true,
maximizable: true,
maximized: false,
modal: true,
width: parseInt(intWidth),
height: parseInt(intHeight),
layout: 'fit',
autoLoad: {
url: strURL,
scripts: true
}
});
//win.loadcontent();
win.show();
}
</script>
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="frmUserEdit.aspx.vb" Inherits="prjIntNet.frmUserEdit" %>
<!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">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<ext:ResourceManager ID="ResourceManager1" runat="server" DirectMethodNamespace="dirMethod" />
<ext:Hidden ID="hiddenUserID" runat="server">
</ext:Hidden>
<ext:Store ID="stoSEX" runat="server">
</ext:Store>
<ext:Store ID="stoMartial" runat="server">
</ext:Store>
<ext:Store ID="stoShop" runat="server">
</ext:Store>
<ext:Store ID="stoDepartment" runat="server">
</ext:Store>
<ext:Viewport ID="Viewport1" runat="server" Layout="border">
<Items>
<ext:FormPanel ID="FormPanel1" runat="server" Padding="5" Title="User" Width="400" BodyPadding="10" Frame="true" icon="User" Region="Center">
<FieldDefaults LabelAlign="Left" LabelWidth="110"/>
<Items>
<ext:FieldSet ID="fsetBasicInfo" runat="server" Title="Basic Information" Layout="AnchorLayout" DefaultAnchor="100%">
<Items>
<ext:Container ID="Container7" runat="server" Layout="HBoxLayout" MarginSpec="0 0 5 0">
<Items>
<ext:TextField ID="txtUserCode" runat="server" FieldLabel="User Code" AllowBlank="false" Width="200" LabelStyle="color:red" ></ext:TextField>
</Items>
</ext:Container>
<ext:Container ID="Container1" runat="server" Layout="HBoxLayout" MarginSpec="0 0 5 0">
<Items>
<ext:TextField ID="txtChineseName" runat="server" FieldLabel="Chinese Name" AllowBlank="false" Width="200" LabelStyle="color:red" ></ext:TextField>
<ext:TextField ID="txtEnglishName" runat="server" FieldLabel="English Name" AllowBlank="false" Width="200" LabelStyle="color:red" PaddingSpec="0 0 0 10" ></ext:TextField>
</Items>
</ext:Container>
<ext:Container ID="Container2" runat="server" Layout="HBoxLayout" MarginSpec="0 0 5 0">
<Items>
<ext:TextField ID="txtNickName" runat="server" FieldLabel="Nick Name" AllowBlank="true" Width="200"></ext:TextField>
<ext:DateField ID="dtpDOB" runat="server" FieldLabel="DOB" AllowBlank="false" Width="200" LabelStyle="color:red" PaddingSpec="0 0 0 10" ></ext:DateField>
</Items>
</ext:Container>
<ext:Container ID="Container5" runat="server" Layout="HBoxLayout" MarginSpec="0 0 5 0">
<Items>
<ext:TextField ID="txtTelephone" runat="server" FieldLabel="Telephone" AllowBlank="false" Width="200" LabelStyle="color:red" ></ext:TextField>
<ext:TextField ID="txtMobile" runat="server" FieldLabel="Mobile" AllowBlank="false" Width="200" LabelStyle="color:red" PaddingSpec="0 0 0 10" ></ext:TextField>
</Items>
</ext:Container>
<ext:Container ID="Container3" runat="server" Layout="HBoxLayout" MarginSpec="0 0 5 0">
<Items>
<ext:TextField ID="txtIDCard" runat="server" FieldLabel="ID Card#" AllowBlank="false" Width="200" LabelStyle="color:red" ></ext:TextField>
<ext:TextField ID="txtPassport" runat="server" FieldLabel="Passport#" AllowBlank="true" Width="200" PaddingSpec="0 0 0 10" ></ext:TextField>
</Items>
</ext:Container>
<ext:Container ID="Container4" runat="server" Layout="HBoxLayout" MarginSpec="0 0 5 0">
<Items>
<ext:ComboBox ID="cboSex" runat="server" FieldLabel="Sex" AllowBlank="false" LabelStyle="color:red" Width="200"></ext:ComboBox>
<ext:ComboBox ID="cboMartial" runat="server" FieldLabel="Martial" AllowBlank="false" LabelStyle="color:red" Width="200" PaddingSpec="0 0 0 10" > </ext:ComboBox>
</Items>
</ext:Container>
<ext:Container ID="Container6" runat="server" Layout="HBoxLayout" MarginSpec="0 0 5 0">
<Items>
<ext:TextField ID="txtNation" runat="server" FieldLabel="Nation" AllowBlank="true" Width="200"></ext:TextField>
<ext:TextField ID="txtEMail" runat="server" FieldLabel="EMail" AllowBlank="false" Width="200" Vtype="email" LabelStyle="color:red" PaddingSpec="0 0 0 10" ></ext:TextField>
</Items>
</ext:Container>
<ext:Container ID="Container8" runat="server" Layout="HBoxLayout" MarginSpec="0 0 5 0">
<Items>
<ext:TextField ID="txtPhoto" runat="server" FieldLabel="Photo" AllowBlank="true" Width="200"></ext:TextField>
<ext:Checkbox ID="chkMarkDel" runat="server" FieldLabel="Delete" Width="200" PaddingSpec="0 0 0 10" ></ext:Checkbox>
</Items>
</ext:Container>
</Items>
</ext:FieldSet>
<ext:FieldSet ID="fsBank" runat="server" Title="Bank Information" Layout="AnchorLayout" DefaultAnchor="100%" Collapsible="true" Collapsed="true">
<Items>
<ext:TextField ID="txtBankAccount" runat="server" FieldLabel="Bank Account" AllowBlank="true"></ext:TextField>
<ext:TextField ID="txtBankName" runat="server" FieldLabel="Bank Name" AllowBlank="true"></ext:TextField>
<ext:TextField ID="txtBankAccountName" runat="server" FieldLabel="Bank Account Name" AllowBlank="true"></ext:TextField>
</Items>
</ext:FieldSet>
<ext:FieldSet ID="fsContact" runat="server" Title="Contact Information" Layout="AnchorLayout" DefaultAnchor="100%" Collapsible="true" Collapsed="true">
<Items>
<ext:TextField ID="txtChineseAdd" runat="server" FieldLabel="Chinese Address" AllowBlank="true"></ext:TextField>
<ext:TextField ID="txtEnglishAdd" runat="server" FieldLabel="English Address" AllowBlank="true"></ext:TextField>
<ext:TextField ID="txtOtherAdd1" runat="server" FieldLabel="Other Address 1" AllowBlank="true"></ext:TextField>
<ext:TextField ID="txtOtherAdd2" runat="server" FieldLabel="Other Address 2" AllowBlank="true"></ext:TextField>
</Items>
</ext:FieldSet>
<ext:FieldSet ID="fsExtra" runat="server" Title="Other Information" Layout="AnchorLayout" DefaultAnchor="100%" Collapsible="true" Collapsed="true">
<Items>
<ext:TextField ID="txtCustfield1" runat="server" FieldLabel="Customer Field 1" AllowBlank="true"></ext:TextField>
<ext:TextField ID="txtCustfield2" runat="server" FieldLabel="Customer Field 2" AllowBlank="true"></ext:TextField>
<ext:TextField ID="txtCustfield3" runat="server" FieldLabel="Customer Field 3" AllowBlank="true"></ext:TextField>
<ext:TextField ID="txtCustfield4" runat="server" FieldLabel="Customer Field 4" AllowBlank="true"></ext:TextField>
<ext:TextField ID="txtCustfield5" runat="server" FieldLabel="Customer Field 5" AllowBlank="true"></ext:TextField>
</Items>
</ext:FieldSet>
</Items>
<Listeners>
<ValidityChange Handler="#{btnSaveRecord}.setDisabled(!valid);" />
</Listeners>
<BottomBar>
<ext:Toolbar runat="server" ID="Btmtool">
<Items>
<ext:Button runat="server" Icon="Add" ID="btnAddRecord" Text="Add"></ext:Button>
<ext:Button runat="server" Icon="Disk" ID="btnSaveRecord" Text="Save"></ext:Button>
</Items>
</ext:Toolbar>
</BottomBar>
</ext:FormPanel>
<ext:Panel ID="Panel1" runat="server" Collapsible="True" Collapsed="false" Region="East" Width="200" Split="True" Layout="AccordionLayout" >
<Items>
<ext:GridPanel runat="server" ID="gpShop" Width="180" Title="Shop" Icon="Sitemap">
</ext:GridPanel>
<ext:GridPanel runat="server" ID="gpDepartment" Width="180" Title="Department" Icon="Sitemap">
</ext:GridPanel>
</Items>
</ext:Panel>
</Items>
</ext:Viewport>
</div>
</form>
</body>
</html>
Last edited by Daniil; Apr 25, 2013 at 5:36 AM.
Reason: [CLOSED]