Change the backcolor of radComboBox

2 posts, 0 answers
  1. Marcus
    Marcus avatar
    3 posts
    Member since:
    Feb 2007

    Posted 08 Mar 2007 Link to this post

    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.
  2. Georgi
    Admin
    Georgi avatar
    212 posts

    Posted 09 Mar 2007 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top