Problem with Triggerfield width when it is inside a panel

  1. #1

    Problem with Triggerfield width when it is inside a panel

    Hi,
    Probably I am doind something wrong. But here's my problem. I have a TriggerField inside a Panel (which I use as a column) that is inside another panel (with ColumnLayout). There are two major problems with this approach. First one is that my external Panel doesn't stretch to fill all the horizontal space (I set AnchorHorizontal = 100%).
    The Second one is that inside the inner Panel, I have a Triggerfield which I cant specify a value for its width, otherwise it will show only the label (the textbox would be somewhere after the end of the Panel, I guess). Here follows the code i am using.

    <ext:ResourceManager ID="resource1" runat="server" />
        <ext:Viewport ID="Viewport1" runat="server" Layout="FitLayout">
            <Items>
                <ext:Panel runat="server" Layout="FormLayout">
                    <Items>
                        <ext:Panel runat="server" Layout="ColumnLayout" AnchorHorizontal="100%" AutoWidth="true"
                            Height="50">
                            <Items>
                                <ext:Panel runat="server" Layout="FormLayout" ForceLayout="true">
                                    <Items>
                                        <ext:TriggerField runat="server" ID="txtEmpresa" FieldLabel="Empresa" LabelAlign="Left"
                                            AnchorHorizontal="100%">
                                            <Triggers>
                                                <ext:FieldTrigger Icon="Ellipsis" />
                                            </Triggers>
                                        </ext:TriggerField>
                                    </Items>
                                </ext:Panel>
                                <ext:Panel ID="Panel1" runat="server" Layout="FormLayout" ForceLayout="true">
                                    <Items>
                                        <ext:TriggerField runat="server" ID="TriggerField1" FieldLabel="Empresa" LabelAlign="Left">
                                            <Triggers>
                                                <ext:FieldTrigger Icon="Ellipsis" />
                                            </Triggers>
                                        </ext:TriggerField>
                                    </Items>
                                </ext:Panel>
                            </Items>
                        </ext:Panel>
                    </Items>
                </ext:Panel>
            </Items>
        </ext:Viewport>
    There is nothing on the code behing yet.

    Does anyone know what I am doing wrong?

    Thanks in Advance,

    André Custódio
  2. #2
    Hi,

    Please remove AutoWidth="true" of the Panel, because you have already set up AnchorHorizontal and set up ColumnWidth="0.5" or fixed Width for the Panels inside the Panel with ColumnLayout.

Similar Threads

  1. [CLOSED] Detect TriggerField trigger inside directEvent
    By Pablo_Azevedo in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 02, 2012, 10:37 PM
  2. Replies: 0
    Last Post: Dec 28, 2011, 9:30 AM
  3. [CLOSED] TextField 100% Width inside a Panel in a FormPanel
    By SouthDeveloper in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 11, 2011, 10:43 AM
  4. [CLOSED] Grid Panel : Column width (Auto width)
    By legaldiscovery in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 24, 2011, 8:31 PM
  5. Replies: 5
    Last Post: Mar 30, 2010, 11:12 AM

Posting Permissions