Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > ComboBox and ListBox (obsolete as of Q2 2010) > Changing RadCheckBoxElement backcolor

Not answered Changing RadCheckBoxElement backcolor

Feed from this thread
  • Dejo Savicevic avatar

    Posted on Nov 30, 2010 (permalink)

    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.

    Reply

  • Alexander Alexander admin's avatar

    Posted on Dec 3, 2010 (permalink)

    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.

    Reply

  • Dejo Savicevic avatar

    Posted on Dec 6, 2010 (permalink)

    Thank you Alexander. It was helpful.

    Reply

  • Alexander Alexander admin's avatar

    Posted on Dec 9, 2010 (permalink)

    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.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > ComboBox and ListBox (obsolete as of Q2 2010) > Changing RadCheckBoxElement backcolor
Related resources for "Changing RadCheckBoxElement backcolor"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]