[CLOSED] Combobox display field custom template

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] Combobox display field custom template

    Hello!

    I am using custom item templates to apply formatting to combobox items. It is good when combobox list is opened for selection. I don't know how to apply the same view for the selected value of the combobox after the selection list is closed / or while it is open.

                                        <ext:ComboBox runat="server" ID="MyCombo" FieldLabel="MyLabel" DisplayField="DF" ValueField ="VF" QueryMode="Local" Editable="false" AllowBlank="false" StoreID="MyStore">
                                            <ListConfig>
                                                <ItemTpl ID="ItemTpl3" runat="server">
                                                    <Html>                                                                    
                                                        <div>
                                                            <span style="font-size:10px; padding-left:10px; border:1px solid black; background-color:{ColorCode}; overflow:hidden;">&nbsp</span>&nbsp{DF}
                                                        </div>
                                                    </Html>   
                                                </ItemTpl>
                                            </ListConfig>                                  
                                        </ext:ComboBox>
    Please see image below.
    Click image for larger version. 

Name:	comboview.png 
Views:	103 
Size:	6.4 KB 
ID:	5828

    Thanks.
    Last edited by Daniil; Mar 15, 2013 at 3:36 PM. Reason: [CLOSED]

Similar Threads

  1. Problem ComboBox Display/Value Field
    By DanielU in forum 1.x Help
    Replies: 1
    Last Post: Mar 04, 2013, 10:56 AM
  2. [CLOSED] Combobox unique display field issue
    By majestic in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 03, 2012, 3:32 PM
  3. [CLOSED] Using custom template in a ComboBox
    By mattwoberts in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 28, 2011, 3:06 PM
  4. [CLOSED] Change value Store field within combobox and template
    By CarWise in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 17, 2010, 2:18 PM
  5. Replies: 1
    Last Post: Apr 30, 2010, 3:11 PM

Posting Permissions