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

Changing RadCheckBoxElement backcolor

3 Answers 80 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.
Dejo Savicevic
Top achievements
Rank 1
Dejo Savicevic asked on 30 Nov 2010, 05:07 PM
Hi

RadComboBox has RadCheckBoxElement Items. How can I set backcolor of each item. I try like this:

For i As Int16 = 0 To 5          
    Dim citem As New RadCheckBoxElement
        
    citem.Text = "Text"
        
    citem.BackColor = Color.Blue
  'set backcolor to blue, but nothing happens         
    RadComboBox1.Items.Add(citem)
Next


But items backcolor remains unchanged.

3 Answers, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 03 Dec 2010, 03:03 PM
Hello Dejo,

Thank you for your question.

The RadCheckBoxElement will paint its BackColor when its property ShouldPaint is defined as 'True'. It is 'False' by default which provides better performance.

I hope it helps.

Best regards,
Alexander
the Telerik team
Get started with RadControls for WinForms with numerous videos and detailed documentation.
0
Dejo Savicevic
Top achievements
Rank 1
answered on 06 Dec 2010, 04:01 PM
Thank you Alexander. It was helpful.
0
Alexander
Telerik team
answered on 09 Dec 2010, 03:23 PM
Hi Dejo,

I am glad to hear your project works as expected now. Please write back if you have further questions.

Best regards,
Alexander
the Telerik team
Get started with RadControls for WinForms with numerous videos and detailed documentation.
Tags
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
Dejo Savicevic
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Dejo Savicevic
Top achievements
Rank 1
Share this question
or