[CLOSED] ComboBox Custom template for EXT 4 MVC

Threaded View

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

    [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,

    <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 3:41 AM.

Similar Threads

  1. [CLOSED] Combobox display field custom template
    By bayoglu in forum 2.x Premium Help
    Replies: 4
    Last Post: Mar 15, 2013, 5:11 PM
  2. Custom Template Column
    By QualityCode in forum 1.x Help
    Replies: 2
    Last Post: Oct 30, 2011, 12:18 AM
  3. [CLOSED] Using custom template in a ComboBox
    By mattwoberts in forum 1.x Premium Help
    Replies: 1
    Last Post: Apr 28, 2011, 4:06 PM
  4. [CLOSED] Custom Template From CodeBehind
    By Immobilmente in forum 1.x Premium Help
    Replies: 2
    Last Post: Feb 10, 2009, 10:35 AM
  5. Custom Grid Header Template
    By mathec in forum 1.x Help
    Replies: 2
    Last Post: Jan 30, 2009, 8:20 PM

Tags for this Thread

Posting Permissions