This is a migrated thread and some comments may be shown as answers.

Background color

3 Answers 77 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Tina
Top achievements
Rank 1
Tina asked on 15 Nov 2011, 02:24 AM
How can i change the background color of the combobox dropdown?

3 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 15 Nov 2011, 04:33 AM
Hello Tina,

You can try the following CSS.

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

Thanks,
Princy.
0
Tina
Top achievements
Rank 1
answered on 16 Nov 2011, 02:36 AM
How can I add new items in combobox from client side?
0
Princy
Top achievements
Rank 2
answered on 16 Nov 2011, 04:40 AM
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.
Tags
ComboBox
Asked by
Tina
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Tina
Top achievements
Rank 1
Share this question
or