Container layout problem

  1. #1

    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.

    <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>
  2. #2
    Hi,

    Set up
    <LayoutConfig>
        <ext:ColumnLayoutConfig FitHeight="false" />
    </LayoutConfig>
    for the containers with ColumnLayout to get AutoHeight="true" working.

Similar Threads

  1. Replies: 2
    Last Post: Jan 06, 2012, 7:54 PM
  2. Replies: 3
    Last Post: Nov 22, 2010, 3:32 PM
  3. Replies: 4
    Last Post: Feb 23, 2010, 8:38 AM
  4. [CLOSED] Layout Issue in Hidden Container
    By amitpareek in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Feb 22, 2010, 6:14 PM
  5. Replies: 4
    Last Post: Dec 30, 2009, 2:31 AM

Posting Permissions