May 25, 2011, 4:52 AM
Container layout problem
Hi all,
I have a formpanel. Within it, there's a container using column layout which contains another 2 containers using form layout. In code behind, i will add textboxes into the 2 container using the form layout.
The problem is that the container does not set its height automatically. I will not see my added textboxes unless i specifically set the height of the parent container which uses the column layout.
I hope someone can show me how i can set the container to automatically set the required height to display all controls in it.
Thanks.
I have a formpanel. Within it, there's a container using column layout which contains another 2 containers using form layout. In code behind, i will add textboxes into the 2 container using the form layout.
The problem is that the container does not set its height automatically. I will not see my added textboxes unless i specifically set the height of the parent container which uses the column layout.
I hope someone can show me how i can set the container to automatically set the required height to display all controls in it.
Thanks.
<ext:Viewport ID="Viewport1" runat="server" Layout="Fit" HideBorders="true">
<Items>
<ext:TabPanel ID="TabPanel1" runat="server" ActiveIndex="3">
<Items>
<ext:Panel ID="pFactor" runat="server" Title="test1" Disabled="true">
<Listeners>
<Activate Handler="#{DirectMethods}.redirect('rwar2.aspx');" />
</Listeners>
</ext:Panel>
<ext:Panel ID="pyyt" runat="server" Title="test2" Disabled="true">
<Items>
<ext:FormPanel ID="testf" Title="test fp" AutoHeight="true" PaddingSummary="10px 10px 10px" runat="server" ButtonAlign="Right" MonitorValid="true">
<Items>
<ext:Container ID="mcc" runat="server" Layout="Column" Width="699" FitHeight="false" AutoHeight="true">
<Items>
<ext:Container ID="ctt" runat="server" Layout="Form" ColumnWidth=".4" LabelWidth="130" AutoHeight="true">
<Items>
</Items>
</ext:Container>
<ext:Container ID="cRatio" runat="server" Layout="Form" ColumnWidth=".2" LabelWidth="50" AutoHeight="true">
<Items>
</Items>
</ext:Container>
</Items>
</ext:Container>
</Items>
<Listeners>
<ClientValidation Handler="#{bb}.setDisabled(!valid);" />
</Listeners>
<Buttons>
<ext:Button ID="bb" runat="server" Icon="Disk" Text="Save & Continue">
<DirectEvents>
<Click OnEvent="btt" />
</DirectEvents>
</ext:Button>
</Buttons>
</ext:FormPanel>
</Items>
</ext:Panel>
<ext:Panel ID="bSub" runat="server" Title="Complete " Disabled="true">
<Listeners>
<Activate Handler="#{DirectMethods}.redirect('test.aspx');" />
</Listeners>
</ext:Panel>
</Items>
</ext:TabPanel>
</Items>
</ext:Viewport>