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

[Solved] Trouble setting the backcolor of RadComboBox

4 Answers 142 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Jeremy
Top achievements
Rank 1
Jeremy asked on 22 Jun 2008, 09:55 PM
I have a large web application with many webforms that we use a specific backcolor to indicate required fields. I'm trying to set the backcolor of the radcombobox in the Page_PreRender. The trouble I'm having is the following.

this works:
RadComboBox1.BackColor = Drawing.Color.Blue

this does not work:
RadComboBox1.BackColor = Drawing.ColorTranslator.FromHtml("#ccffff")

I need to use this color as it has been the required field backcolor in this application for almost 3 years.

Ideas anyone?
Jeremy

4 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 23 Jun 2008, 11:31 AM
Hi Jeremy,

Try setting the BackColor in the PreRender event of the RadCombobox .

CS:
 protected void RadComboBox2_PreRender(object sender, EventArgs e)  
    {  
        RadComboBox2.BackColor = System.Drawing.ColorTranslator.FromHtml("#ccffff");  
         
    } 


Thanks
Princy.
0
Chameleoki
Top achievements
Rank 2
answered on 23 Jun 2008, 06:13 PM
That's what he says he's doing.  I've also verified that this does not work and would like a solution.
0
Jeremy
Top achievements
Rank 1
answered on 23 Jun 2008, 07:27 PM
It doesn't work in the Page_PreRender or the RadCombBox1_PreRender.
0
Rosi
Telerik team
answered on 24 Jun 2008, 03:02 PM
Hi Jeremy ,

The problem is related to a bug in the control which is already addressed.
Please find attached our latest internal build.

Regards,
Rosi
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ComboBox
Asked by
Jeremy
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Chameleoki
Top achievements
Rank 2
Jeremy
Top achievements
Rank 1
Rosi
Telerik team
Share this question
or