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

Click / Select treeview node also checks the Checkbox

Thread ID:





119101 May 11,2015 07:25 AM UTC May 12,2015 09:58 AM UTC JavaScript 1
Tags: ejTreeView
Rob ONeill
Asked On May 11, 2015 07:25 AM UTC

Is it possible that when selecting / clicking on a treeview node that this action would also check the  Checkbox when showcheckbox is equal to true.

Cheers ... Rob.

Sasikala Nagarajan [Syncfusion]
Replied On May 12, 2015 09:58 AM UTC

Hi Robert,

Thanks for using Syncfusion products,

We have analyzed your requirement and we have achieved this by customizing the treeview functionalities in node click event.

Please refer the below code snippet

<script type="text/javascript">

var treeObj;

$(function () {

$("#treeView").ejTreeView({ expandOn:"",showCheckbox: true,nodeClick:"selectCheckBox"});

treeObj= $("#treeView").ejTreeView('instance');


function selectCheckBox(args) {

if(args.currentElement.nodeName=="A") {

var element=$(args.currentElement).parents("li.e-item")[0];


!isChecked ? treeObj.checkNode(element):treeObj.uncheckNode(element);




In this we have disabled the “expand and collapse in double click” by setting “expandOn” as empty string (“”).

For your convenience we have prepared the simple sample based on this it can be downloaded from below location.


Please check with the given sample and let us know if you have further queries.


Sasikala Nagarajan


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