Styling a checkbox in RadGridView

2 posts, 0 answers
  1. Charlie
    Charlie avatar
    2 posts
    Member since:
    Mar 2015

    Posted 13 Sep 2016 Link to this post

    Hello. I am currently trying to accomplish a couple of things with checkbox columns in a RadGridView. My experience with styling in XAML is zero, so good examples would be helpful.


    I would like to be able to take the standard checkbox control and 

    1. Make it larger (for both view and edit mode)

    2. When in view mode, style the checkbox control in some way to make it stand out (like Bold or a different color).


    The documentation does not provide any examples at all on how to apply styles outside of telling you to create a ControlTemplate and then applying that ControlTemplate to a Style. I believe this is tailored to a developer that already knows how to do these things. 

    I would like to apply this per-grid for the time being.

  2. Dilyan Traykov
    Dilyan Traykov avatar
    1073 posts

    Posted 14 Sep 2016 Link to this post

    Hello Charlie,

    In order to achieve the desired look for the view and edit mode of the GridViewCheckBoxColumn, you will need to modify the control templates for the GridViewCheckBox and CheckBox elements respectively.

    This can be done by either modifying the default styles of the controls in Microsoft Blend or by manually extracting and modifying the template from the theme xaml file.

    You can then place these styles inside the Resources of your RadGridView to apply them only to this particular instance.

    To help you out, I'm attaching a sample project where I've modified the templates of the controls for the Office_Black theme. You can follow the same pattern in order to apply custom styling for the other themes as well.

    Please let me know if you need any additional assistance on the matter.

    Dilyan Traykov
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top