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

Change the backcolor of radComboBox

1 Answer 131 Views
ComboBox and ListBox (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Marcus
Top achievements
Rank 1
Marcus asked on 08 Mar 2007, 02:20 PM
How do I go about changing the BackColor of the radComboBox?  I tried using the BackColor property but it doesn't change anything.  I am trying to get it to change to one color when it has focus and change back to the default color when it has lost focus.

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 09 Mar 2007, 10:59 AM
Hi Marcus,

Indeed, changing BackColor property of the RadComboBox doesn't change color of the textbox part. This property is inherited from ScrollableControl which is ancestor of all our controls.

Try implementing this with a new theme based on the default theme for example. If you start the Quick Start examples, select any combobox example and open the Visual Style Builder. Choose RadTextBoxItem in the Control Structure tree on the left and then add a new state. Then open the state editor and add a state with property Telerik.WinControls.RadElement.IsFocused and its Value set to true. Then set the desired color in the property list on the right. Finally save this theme and use it where you need. You can find an online movie on how to use the Style builder here: http://www.telerik.com/support/videos.aspx

I hope this information helps.
 

Sincerely yours,
Georgi
the telerik team
Tags
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
Marcus
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or