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

How to fire an event when a tree node is double clicked

Thread ID:





118453 Mar 10,2015 08:10 AM UTC Mar 11,2015 03:44 PM UTC JavaScript 1
Tags: ejTreeView
Muhammad Masood
Asked On March 10, 2015 08:10 AM UTC


I want to know that how to fire an event when a tree node is double clicked.


Sasikala Nagarajan [Syncfusion]
Replied On March 11, 2015 03:44 PM UTC

Hi Muhammad,

Thanks for using Syncfusion products,

We have analyzed your query (how to fire an event when a tree node is double clicked). If the parent tree node is double clicked then the “beforeExpandCollapse” event will be triggered. If we double clicked the child tree node no other events will be triggered (if allowEditing is in false).

If we enable the node editing (set ‘allowEditing’ as true) for treenode then “beforeEdit” event will be triggered even for the parent tree node (Its will not expand/collapse if we double clicked).

If you want to trigger the custom event when tree node is double clicked then we need to bind the “dblclick” event manually. Please refer the below code snippet


$(" #treeView a.e-text").bind("dblclick",function()




This event will be triggered before tree view’s default events (“beforeExpandeCollapase, nodeEditing") get triggered.

For your convenience, we have prepared the sample based on your requirement. Please get the sample 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