ColumnLayout and Mixed LayoutColumn Items

  1. #1

    ColumnLayout and Mixed LayoutColumn Items



    Hi there,

    Ha anyone been able to implement a fixed width for the LayoutColumn layout?

    This creates two areas but with percentage widths and not fixed.

    <ext:ColumnLayout ID="ColumnLayout1" runat="server">
        <ext:LayoutColumn ColumnWidth="0.3" >
            <ext:Panel ID="Panel3" runat="server" Border="false" Height="30">
                <Content>
                   content1
                </Content>
            </ext:Panel>
        </ext:LayoutColumn>
        <ext:LayoutColumn ColumnWidth="0.7">
            <ext:Panel ID="Panel4" runat="server" Border="false"  Height="30">
                <Content>
                  content 2
                </Content>
            </ext:Panel>
        </ext:LayoutColumn>
    </ext:ColumnLayout>
    What I want to do is something like this:
    <ext:ColumnLayout ID="ColumnLayout1" runat="server">
        <ext:LayoutColumn Width="250" >
            <ext:Panel ID="Panel3" runat="server" Border="false" Height="30">
                <Content>
                   content1
                </Content>
            </ext:Panel>
        </ext:LayoutColumn>
        <ext:LayoutColumn ColumnWidth="1">
            <ext:Panel ID="Panel4" runat="server" Border="false"  Height="30">
                <Content>
                  content 2
                </Content>
            </ext:Panel>
        </ext:LayoutColumn>
    </ext:ColumnLayout>
    i.e. Have the first column have a fixed width of 250px and the other column fill the rest of the container.

    At the moment Width is not a supported property for the LayoutColumn control. but ExtJS supports mixed layout settings. I am looking for a work around, so anyone with any ideas would be appreciated.

    thanks,
    Conor
  2. #2

    RE: ColumnLayout and Mixed LayoutColumn Items

    Hi Conor,

    If you need to use fixed width then please use Width property of LayoutColumn nested control:

         <ext:ViewPort runat="server" ID="VP1">
            <Content>
                <ext:ColumnLayout ID="ColumnLayout1" runat="server">
                    <ext:LayoutColumn>
                        <ext:Panel ID="Panel3" runat="server" Height="30" Width="250">
                            <Content>
                               content1
                            </Content>
                        </ext:Panel>
                    </ext:LayoutColumn>
                    <ext:LayoutColumn ColumnWidth="0.9999">
                        <ext:Panel ID="Panel4" runat="server" Height="30">
                            <Content>
                              content 2
                            </Content>
                        </ext:Panel>
                    </ext:LayoutColumn>
                </ext:ColumnLayout>
                </Content>
            </ext:ViewPort>
    Please pay attention ColumnWidth value must be greater than 0 and less than 1 (this is ExtJs limitation)

    I hope this will help
  3. #3

    RE: ColumnLayout and Mixed LayoutColumn Items


    Sweet as... That is exactly what I needed.

Similar Threads

  1. [CLOSED] ext:Panel with Items and Loader (mixed mode)
    By supera in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 24, 2012, 2:45 PM
  2. [CLOSED] Using LayoutColumn split not yielding expected look
    By SymSure in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 15, 2010, 9:29 PM
  3. Replies: 1
    Last Post: Jan 26, 2010, 2:03 PM
  4. [CLOSED] LayoutColumn.Width missing?
    By randy85253 in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Oct 26, 2009, 1:24 PM
  5. Replies: 6
    Last Post: Jan 22, 2009, 7:38 AM

Posting Permissions