I have a dropdown list and would like to style alternative items with different background colors, is there a way to do it in "CSS", I would try not to use Javascript do it.
Thanks.
1 Answer, 1 is accepted
0
Accepted
Plamen Lazarov
Telerik team
answered on 08 Jun 2015, 02:52 PM
Hello Jianwei,
ComboBox and DropDownList list items are wrapped in a div with an id which is created from the id of the html element from which the widget is initialized and the string "-list". In other words if we use <input id="countries" /> to initialize a ComboBox or a DropDownList the div containing the <ul> with the list items will have countries-list as an Id.
In order to achieve the desired result a CSS style could be applied to list items. Please refer to the example below: