[1.0] LabelSeparator inconsistency when using empty string

  1. #1

    [1.0] LabelSeparator inconsistency when using empty string

    I'm using Ext.NET 1.0 RC1, with .NET 3.5. This bug is not browser dependent.

    Description: if setting the LabelSeparator property of a control to an empty string (""), then the setting is ignored (the control still uses the default separator). However, if the controls are inside a FormPanel, then setting the control LabelSeparator property to an empty string works.
    The behavior should be consistent (probably allowing empty strings, as it currently does inside FormPanels).

    Test case:

    <p>LabelSeparator setting ignored:</p>
    <ext:DisplayField ID="DisplayField1" runat="server" Text="MyText" FieldLabel="MyLabel" LabelSeparator="" />
    <ext:ComboBox ID="ComboBox1" runat="server" Text="MyText" FieldLabel="MyLabel" LabelSeparator="" />
    
    <p>LabelSeparator setting respected:</p>
    <ext:FormPanel runat="server">
    <Items>
        <ext:DisplayField ID="DisplayField2" runat="server" Text="MyText" FieldLabel="MyLabel" LabelSeparator="" />
        <ext:ComboBox ID="ComboBox2" runat="server" Text="MyText" FieldLabel="MyLabel" LabelSeparator="" />
    </Items>
    </ext:FormPanel>
  2. #2
    Hi,

    Generally speaking, we don't recommend to use FieldLabel when a field is not within 'form' layout, it's documented behavior, see
    http://dev.sencha.com/deploy/dev/doc...ber=fieldLabel

    When there is no 'form' layout a special plugin is used to render FieldLabel. So, plugin can work in different way.

Similar Threads

  1. [CLOSED] Overiding the labelseparator
    By SymSure in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 25, 2012, 6:28 PM
  2. [CLOSED] ComponentLoader inconsistency
    By RCN in forum 2.x Legacy Premium Help
    Replies: 10
    Last Post: Jun 07, 2012, 12:24 PM
  3. Replies: 0
    Last Post: Dec 02, 2011, 12:23 AM
  4. Replies: 1
    Last Post: Feb 28, 2011, 8:13 AM
  5. Replies: 1
    Last Post: Aug 25, 2009, 10:27 AM

Posting Permissions