label width

  1. #1

    label width

    Hello,

    In my page in a multifield there is a label before the last textbox. I want these labels to be aligned but i could not make it possible. I have tried some tricks though. Could you please help?

    <ext:Anchor>
    <ext:MultiField ID="MultiField3" runat="server" FieldLabel="<%$ Resources:Activity, InspectionReports_MultiField_Toplaag %>">
    <Fields>
    <ext:ComboBox ID="comboToplaag" StoreID="strToplaags" runat="server" TypeAhead="false"
    LoadingText="<%$ Resources:Common, Combo_Searching %>" ValueField="ToplaagID"
    DisplayField="Name" HideTrigger="true" Width="203" ItemSelector="div.search-item"
    MinChars="1" Editable="true">
    <Template ID="Template9" runat="server">
    <tpl for=".">
    <div class="search-item">
    <h3>{Name}</h3>


    </tpl>
    </Template>
    </ext:ComboBox>
    <ext:Image ID="Image1" ImageUrl="~/icons/magnifier-png/coolite.axd" runat="server" />
    <ext:TextField ID="txtToplaagDetail" runat="server" Width="200" />
    <ext:Label ID="lblGoothoogte" LabelCls="labelWidth" runat="server" Text="<%$ Resources:Activity, InspectionReports_Label_Goothoogt %> " />
    <ext:TextField ID="nmbGoothoogte" runat="server" Width="200" FieldLabel="<%$ Resources:Activity, InspectionReports_TextField_NumberGoothoogtemm %>" />
    </Fields>
    </ext:MultiField>
    </ext:Anchor>
  2. #2

    RE: label width

    Hi,

    Can you set the .Width property of the <ext:Label>?


    Or, you might need to create a two column layout and add the Label + TextField in the second column. In that scenario, it would also be better to use a FormLayout and set the .FieldLabel property of the TextField, instead of using a separate <ext:Label>.


    Hope this helps.


    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] Label width ignored on NumberField
    By machinableed in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Aug 28, 2012, 5:05 AM
  2. [CLOSED] Label width problem
    By caha76 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 22, 2011, 2:59 PM
  3. [CLOSED] Field Label Width of Composite Fields
    By jeremyl in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 11, 2010, 5:32 AM
  4. [CLOSED] ext:Label width/alignment in Anchor
    By mrozik in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 28, 2009, 10:14 AM
  5. Multifield label width
    By Wtower in forum 1.x Help
    Replies: 2
    Last Post: Aug 10, 2009, 1:37 PM

Posting Permissions