Mar 15, 2013, 2:58 AM
[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.
Thanks.
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;"> </span> {DF}
</div>
</Html>
</ItemTpl>
</ListConfig>
</ext:ComboBox>
Please see image below.Thanks.
Last edited by Daniil; Mar 15, 2013 at 3:36 PM.
Reason: [CLOSED]