Background color

4 posts, 1 answers
  1. Tina
    Tina avatar
    130 posts
    Member since:
    Jul 2011

    Posted 14 Nov 2011 Link to this post

    How can i change the background color of the combobox dropdown?
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 14 Nov 2011 Link to this post

    Hello Tina,

    You can try the following CSS.

    CSS:
    <style type="text/css">
     .RadComboBoxDropDown .rcbList
     {
        background-color:Red ! important;
     }
    </style>

    Thanks,
    Princy.
  3. Tina
    Tina avatar
    130 posts
    Member since:
    Jul 2011

    Posted 15 Nov 2011 Link to this post

    How can I add new items in combobox from client side?
  4. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 15 Nov 2011 Link to this post

    Hello Tina,

    Try the following javascript.
    JS:
    function Add()
    {
      var combo = $find("<%= RadComboBox1.ClientID %>");
      var Item = new Telerik.Web.UI.RadComboBoxItem();
      Item.set_text("Mario");
      combo.trackChanges();
      combo.get_items().add(Item);
      Item.select();
      combo.commitChanges();       
    }

    -Princy.
Back to Top