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

Inactive Color

2 Answers 79 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Andrés
Top achievements
Rank 1
Andrés asked on 17 Dec 2012, 11:40 AM
Hi;

How I Can change backgroudcolor and fore color when enable = false in a RadDropDownList? text contrast with the background is very bad.

regards.

2 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 18 Dec 2012, 02:41 PM
Hi Andrés,

Thank you for writing.

In case that you want to set the back color of the text box hosted in RadDropDownList you should use the following code snippet:
this.radDropDownList1.DropDownListElement.TextBox.Fill.BackColor = Color.Yellow;
this.radDropDownList1.DropDownListElement.TextBox.BackColor = Color.Yellow;
 
//For DropDownStyle = DropDownList
this.radDropDownList1.DropDownListElement.EditableElement.BackColor = Color.Yellow;

This can be also set via Visual Style Builder by modifying the theme that you are using.

I hope this helps.

Greetings,
Plamen
the Telerik team
Q3’12 of RadControls for WinForms is available for download (see what's new). Get it today.
0
Andrés
Top achievements
Rank 1
answered on 19 Dec 2012, 11:20 AM
Hi;

Thanks for your answer is perfect!

Regards
Tags
DropDownList
Asked by
Andrés
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Andrés
Top achievements
Rank 1
Share this question
or