changing C1CheckList checkbox color

Posted by: robert.ghinzel on 31 August 2019, 3:58 pm EST

  • Posted 31 August 2019, 3:58 pm EST

    We would like to change the color of the C1CheckList checkbox. When enter-able have the checkbox displayed as white, when non enter-able light grey. How is this done?
  • Replied 1 September 2019, 9:54 pm EST

    Hello,

    When C1CheckListItem is non enter-able or disabled the color of the value and checkbox is LightGray by default.

    If you meant to change the backcolor of the disabled C1CheckListItem, you can set the backcolor property of disabled C1CheckListItem as given in code snippet below :

    c1CheckList1.Styles.Disabled.BackColor = Color.LightGray;

    If you want to do something else, please let us know.

    Regards,
    Prabhat Sharma.
  • Replied 2 September 2019, 12:22 am EST

    The above code sets the color of the entire checklist row.
    We would like to control the color of the check box. When enabled have the check box white, independent to the row color.
  • Replied 3 September 2019, 10:03 pm EST

    Hello,

    Sorry but currently it is not possible to access the checkbox of the CheckList independently and set its style.

    Although you can use the ForeColor property of the C1CheckListItem's styles but it will change the color of checkbox and value both.

    If you need any other help, please let us know.

    Regards,
    Prabhat Sharma.

  • Replied 4 September 2019, 5:08 am EST

    Are you able to update the control to include this. With the current implementation it looks like the checkbox is disabled. Unfortunately the control behavior is not consistent with the standard Microsoft UI look and feel and is confusing to end users.
  • Replied 4 September 2019, 5:34 pm EST

    Hello,

    We value your concern i.e. we have escalated the case to the developers.[Internal Tracking ID : 396816]

    We will let you know once we get any updates regarding this from the developers.

    Regards,
    Prabhat Sharma.
  • Replied 17 September 2019, 11:42 am EST

    Any update on this issue?
  • Replied 17 September 2019, 6:10 pm EST

    Hello,

    As I said currently it is not possible to access the checkbox of the CheckList independently and set its style.

    So we will consider it as an enhancement. However there is no ETA yet.
    We will let you know once we get any updates from the developers.

    Regards,
    Prabhat Sharma.
  • Replied 16 March 2020, 11:17 pm EST

    Hi,

    The colors of the CheckBoxes in the C1CheckList can now be changed using CheckBoxColor property which is introduced in the 2020V1 release.
    You can upgrade your controls to the latest version to use this feature.

    Regards,
    Prabhat

  • Replied 8 April 2020, 4:05 am EST

    Not finding CheckBoxColor property which is introduced in the 2020V1 release.
    for C1MultiSelect, C1TreeView and C1CheckList.

    Please show with example.
  • Marked as Answer

    Replied 8 April 2020, 5:36 pm EST

    Hi Mahesh,

    To learn how to set the CheckBox color in C1CheckList and C1MultiSelect, please go through the sample attached below.
    CheckBoxColor.zip

    And to learn how to set checkbox color in C1TreeView, use the CheckBoxColor property under TreeViewStyles class and this property will only work when CheckBoxStyle is Windows10 as described in the link given below.
    https://www.grapecity.com/componentone/docs/win/online-treeview/C1.Win.TreeView.4.5.2~C1.Win.TreeView.TreeViewStyles~CheckBoxColor.html?highlight=checkbox%2C


    Regards,
    Prabhat Sharma.
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels