i have an asp.net mvc page and i want to have a dropdown list with different background color like this page
i have the following code to display a dropdown list
<label>Data Source: </label><% = Html.DropDownList("DataSource", Model.CalendarDataSources, new { @id = "calendarDSDropdown", @class = "calendarDSDropdown" })%>
in my viewmodel i have:
public IEnumerable<SelectListItem> CalendarDataSources;
which i am populating on the server. I want to add a different backlog to each SelectListItem but i can't see how to do that as select list item only has Name, Id, Selected properties
is this possible