[CLOSED] Label Editor ComboBox Jumps to left when Editor activated

  1. #1

    [CLOSED] Label Editor ComboBox Jumps to left when Editor activated

    Hi

    I have a little problem. In a much more complicated piece of code, I have created an label with a combo box as an editor. However, when I activate the editor, it jumps left and I would like to align the left of the editor to the left of the label. Is this possible? It has to be in a FormLayout incidentally.

    The same happens in with the code snippet below.

    Kind regards

    Ian

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
        <ext:ResourceManager ID="ResourceManager1" runat="server" /> 
        <ext:Store ID="BigStore" runat="server" AutoLoad="false" TotalProperty="rowCounter">
                    <BaseParams>
    
    
                    </BaseParams>
                    <CustomConfig>
    
    
                    </CustomConfig>
                    <Proxy>
    
    
                    </Proxy>
                    <Reader>
    
    
                    </Reader>
                </ext:Store>
                <ext:Panel runat="server" Layout="FormLayout" LabelWidth="150" Title="Editor Jump Example">
                <Items>
                <ext:Label 
                        ID="lbl" 
                        runat="server" 
                        Cls="editable" 
                        OverCls="editable-over"
                        Text="Some preselected "
                        FieldLabel="A label with editor"
                      
                        >
                        <Editor>
                            <ext:Editor ID="Editor1" runat="server" Flex="1">
                                <Field>
                                 <ext:ComboBox  
                                    runat="server" 
                                    ID="innerCombo"
                                    ItemSelector="div.search-item"        
                                    StoreID="BigStore"
                                    Width="400"
                                    >                               
                                    <Template ID="Template2" runat="server">
                                        <Html>
                                            <tpl for="."><div class="search-item"><h3><span>{price},{fullAddress}</span></h3></div></tpl>
                                        </Html>
                                    </Template>
                                    <Triggers>
                                        <ext:FieldTrigger Icon="Clear" Qtip="Clear text"  />
                                    </Triggers>
                                    <Listeners>
                                    </Listeners>                                
                                </ext:ComboBox> 
                                </Field>
                            </ext:Editor>
                        </Editor>
                    </ext:Label>
                </Items>
                </ext:Panel>
        </div>
        </form>
    </body>
    </html>
    Last edited by Daniil; Sep 19, 2011 at 1:37 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Please set Alignment="l-l" for the Editor.
    <ext:Editor runat="server" Alignment="l-l">
  3. #3
    Hi Daniil

    Thanks for the reply. That works perfectly in markup (although it didn't appear in intellisense). However, I need it to work in code behind, and if I try it there it

                Ext.Net.Editor editor = new Ext.Net.Editor();
                editor.Alignment = "l-l";
    "Property or indexer 'Ext.Net.Editor.Alignment' cannot be assigned to -- it is read only"

    Anything I can do about that?

    Kind regards

    Ian
  4. #4
    It's a custom config option. Just we make all not existing property defined in markup as config item options.

    So, please add it to CustomConfig.
  5. #5
    Thanks Daniil,

    works perfectly.

    Ian

Similar Threads

  1. [CLOSED] Label Editor - Different Editor types
    By rthiney in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Nov 29, 2013, 3:34 AM
  2. [CLOSED] Label editor with a composite field
    By stratadev in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jul 24, 2012, 4:04 PM
  3. Replies: 1
    Last Post: Sep 24, 2011, 10:52 PM
  4. Replies: 0
    Last Post: Sep 04, 2011, 8:29 AM
  5. Replies: 3
    Last Post: Jun 18, 2009, 6:57 AM

Posting Permissions