Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Combobox > Item background color
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Not answered Item background color

Feed from this thread
  • Smiely Intermediate avatar

    Posted on May 27, 2011 (permalink)

    My RadcomboBox has two types of items.  Depending on database it can change.
    Can I set different background colors when loading.

    Please help...
    Smiely

  • Posted on May 30, 2011 (permalink)

    Hello Smiely,

    Try the following approach in the ItemDataBound event of the RadComboBox.
    C#:
    protected void RadComboBox1_ItemDataBound(object sender, Telerik.Web.UI.RadComboBoxItemEventArgs e)
       {
           if (e.Item.Text == "YourTextHere")
           {
               e.Item.BackColor = System.Drawing.Color.Red;
           }
       }

    Thanks,
    Shinu.

  • Smiely Intermediate avatar

    Posted on May 31, 2011 (permalink)

    It worked! It worked!! It worked!!!!!
    Thanks Shinu

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Combobox > Item background color