Changing RadCheckBoxElement backcolor

4 posts, 0 answers
  1. Dejo Savicevic
    Dejo Savicevic avatar
    10 posts
    Member since:
    Apr 2010

    Posted 30 Nov 2010 Link to this post

    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.
  2. Alexander
    Admin
    Alexander avatar
    306 posts

    Posted 03 Dec 2010 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Dejo Savicevic
    Dejo Savicevic avatar
    10 posts
    Member since:
    Apr 2010

    Posted 06 Dec 2010 Link to this post

    Thank you Alexander. It was helpful.
  5. Alexander
    Admin
    Alexander avatar
    306 posts

    Posted 09 Dec 2010 Link to this post

    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.
Back to Top