Jan 24, 2010, 3:35 PM
[CLOSED] CardLayout Active Index Layout Prob
Hey,
Please test the following example (I tried in FF and Chrome). In firebug type cardPanel.getLayout.setActiveItem(1)
There are 3 fields in Multifield of panel2. They are not rendered properly. Tried doLayout on panel2 and cardPanel. But does'nt work. If you set panel2 as activeindex, it renders perfectly.
Please test the following example (I tried in FF and Chrome). In firebug type cardPanel.getLayout.setActiveItem(1)
There are 3 fields in Multifield of panel2. They are not rendered properly. Tried doLayout on panel2 and cardPanel. But does'nt work. If you set panel2 as activeindex, it renders perfectly.
<ext:Panel runat="server" ActiveIndex="0" ID="cardPanel" Layout="card" Border="false">
<Items>
<ext:panel runat="server" ID="panel1" Html="<h1>DummyPanel</h1>"></ext:panel>
<ext:panel runat="server" ID="panel2" Layout="fit" Padding="10" Height="100">
<Items>
<ext:FormLayout ID="FormLayout1" runat="server" LabelAlign="Top">
<Anchors>
<ext:Anchor Horizontal="100%" >
<ext:MultiField ID="MultiField1" runat="server" FieldLabel="Select Date and Time">
<Fields>
<ext:DateField runat="server" ID="dtDate" FieldLabel="Start Date" ></ext:DateField>
<ext:Timefield runat="server" ID="dtTime" FieldLabel="Start Time" Width="90"></ext:TimeField>
<ext:ComboBox runat="server" Width="200"></ext:ComboBox>
</Fields>
</ext:MultiField>
</ext:Anchor>
</Anchors>
</ext:FormLayout>
</Items>
</ext:panel>
</Items>
</ext:Panel>
Thanks,