Aug 10, 2016, 8:55 PM
[CLOSED] ComboBox Custom template for EXT 4 MVC
Hi Support,
I've color comboBox and I want to change background color based on value. I've found WebForm example like below,
I've color comboBox and I want to change background color based on value. I've found WebForm example like below,
<ext:ComboBox runat="server">
<Items>
<ext:ListItem Text="Red" Value="FF0000" />
<ext:ListItem Text="Green" Value="008000" />
<ext:ListItem Text="Blue" Value="9FD2EC" />
</Items>
<Template>
<Html>
<tpl for=".">
<h1 style="color:{value}">{text}</h1>
</tpl>
</Html>
</Template>
</ext:ComboBox>
How do I implement template like that for MVC Razor?
Last edited by fabricio.murta; Aug 20, 2016 at 2:41 AM.