Oct 25, 2011, 2:03 PM
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.
Does anyone know what I am doing wrong?
Thanks in Advance,
André Custódio
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