Jul 17, 2012, 3:28 PM
[CLOSED] When a window is Hidden and I click a button to show it, its renders incorrectly...
If I show the window without the Hidden Property, it looks fine, but when the window is hidden and I click the button to show the Window, by textboxes & button is missing. Screen Shot below shows what is happening...
<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!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 id="Head1" runat="server">
<title>Simple Form Panel - Ext.NET Examples</title>
</head>
<body>
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<br />
<ext:Button ID="Button1" ArrowAlign="Right" Text="Show Window" OnClientClick="#{WindowDetails}.show();"
runat="server" />
<ext:Window ID="WindowDetails" runat="server" Title="Details" Icon="Comment" Height="200"
Width="400" BodyStyle="background-color: #fff;" BodyPadding="5" Modal="true"
Hidden="true">
<Content>
<ext:FormPanel ID="FormPanel1" runat="server" BodyPadding="0" Border="false" Layout="FormLayout">
<Items>
<ext:FieldContainer ID="FieldContainer1" runat="server" FieldLabel="Type" Layout="HBoxLayout">
<Items>
<ext:ComboBox ID="Type" runat="server" EmptyText="Select a Type" Width="140" AllowBlank="false">
<Store>
<ext:Store ID="TypeStore" runat="server">
<Model>
<ext:Model runat="server">
<Fields>
<ext:ModelField Name="TypeId" Type="Int" />
<ext:ModelField Name="Description" Type="String" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
</ext:ComboBox>
</Items>
</ext:FieldContainer>
<ext:FieldContainer ID="FieldContainer2" runat="server" FieldLabel="Comments" Layout="HBoxLayout">
<Items>
<ext:TextArea ID="Comments" runat="server" Width="265" EmptyText="Please enter comments" />
</Items>
</ext:FieldContainer>
</Items>
<Buttons>
<ext:Button ID="BtnUpdateDetails" ArrowAlign="Right" Icon="Accept" Text="Update"
runat="server" />
</Buttons>
</ext:FormPanel>
</Content>
</ext:Window>
</body>
</html>
Last edited by Daniil; Jul 17, 2012 at 7:20 PM.
Reason: [CLOSED]