We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to change the style/look of the Checkbox when Displayascheckbox = true?

Thread ID:





147527 Sep 14,2019 01:23 AM UTC Sep 16,2019 05:21 PM UTC ASP.NET Web Forms 1
Tags: Grid
Christopher Scholl
Asked On September 14, 2019 01:23 AM UTC

I have a grid and some of the columns are boolean.  I'm using a dark background and i want to make the checkbox border and checkmark inside (when checked) to be a light color - #ffe559.  How do i accomplish this?


Padmavathy Kamalanathan [Syncfusion]
Replied On September 16, 2019 05:21 PM UTC

Hi Christopher, 

Thanks for contacting Syncfusion Forums. 

QUERY: How to change style of checkbox when DisplayAsCheckBox is set to true 

From your query we understand that you need to set customize the checkbox column of the grid. 

We suggest you to use column template. Using templateRefresh event, you can render ejCheckBox. You can customize the ejCheckBox’s style and appearance using it’s class name. 

Please refer the below code snippet, 

.e-chkbox-wrap .e-chk-image.e-checkmark:before { 
background-color: black; 
.e-icon.e-righttick:before, .e-icon.e-checkmark:before { 
 color: #ffe559 
.e-chk-image.e-icon { 
  background-color: black;     
   <div id="Grid"></div> 
  <script type="text/x-jsrender" id="columnTemplate"> 
   {{if Verified}} 
     <input type="checkbox" class="success e-checkbox" checked="checked" /> 
     <input type="checkbox" class="danger e-checkbox"/> 
    <script type="text/javascript"> 
        $(function () { 
              // the datasource "window.gridData" is referred from jsondata.min.js 
             dataSource: window.gridData, 
             allowPaging: true, 
             templateRefresh: "template", 
             columns: [ 
                { field: "OrderID", isPrimaryKey: true, headerText: "Order ID", textAlign: ej.TextAlign.Right, width: 90 }, 
                  { field: "Verified", template: "#columnTemplate", headerText: 'Checkbox', width: 75 }, 
        function template(args) { 
        $(args.cell).find(".e-checkbox").ejCheckBox({ size: "medium" }); 


Please refer the below help documentations, 

Please refer the sample, 

If you have further queries, please get back to us. 

Padmavathy Kamalanathan  


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon