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

[Solved] Styling different instances of ComboBox separately

1 Answer 24 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mike
Top achievements
Rank 1
Mike asked on 27 Feb 2012, 04:45 PM
I am using the Telerik DropDownList control on the header of my application, and an Autocomplete in a separate section.

The section containing the DropDownList has a light background, and we'd like to style it with a similarly light background.
The section containing the Autocomplete has a dark background, so we'd like to style it with a dark background as well.

However, I'm finding there is no way of distinguishing the drop-down part of the controls from each other. Both are dynamically created divs appended to the body, and have no CSS classes or IDs to distinguish them from any other ComboBox-related drop-down lists.

Does anyone have any suggestions for solving this conundrum?

1 Answer, 1 is accepted

Sort by
0
Mike
Top achievements
Rank 1
answered on 27 Feb 2012, 04:54 PM
... and never mind. The DropDownHtmlAttributes method allows for adding arbitrary attributes to the drop down area.
Tags
General Discussions
Asked by
Mike
Top achievements
Rank 1
Answers by
Mike
Top achievements
Rank 1
Share this question
or