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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ejTreeGrid Boolean Field Error

Thread ID:





125247 Aug 2,2016 02:44 PM UTC Aug 3,2016 09:08 AM UTC JavaScript 1
Tags: ejTreeGrid
Irfan Alkan
Asked On August 2, 2016 02:44 PM UTC


As shown in the examples boolean field grid in view It appears in the form of Check Box, same data want  to shown  with Tree Grid  true/false as string view.

What we need to do to view checkbox?



Attachment: ExampleCodeBooleanField_f6dfa940.zip

Jonesherine Stephen [Syncfusion]
Replied On August 3, 2016 09:08 AM UTC

Hi Irfan, 
Thanks for contacting Syncfusion support. 
By using the column template in TreeGrid we can render the checkbox in columns. To edit the checkbox we need to use the “editType” as “booleanedit”.  
Please find the code snippet below: 
<script type="text/x-jsrender" id="customColumnTemplate"> 
        <div style='padding-left:5px;'>{{if approved}}<input type="checkbox" checked disabled>{{else}}<input type="checkbox" disabled />{{/if}}</div> 
$(function () { 
                      columns: [ 
         { field: "approved", headerText: "Approved", editType: "booleanedit", isTemplateColumn: true, templateID: "customColumnTemplate" } 
We have also modified the sample for your reference. Please find the sample from below location: 
Please let us know if you need more information on this.
Jone sherine P S


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