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.
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:

Created:

Updated:

Platform:

Replies:

118453 Mar 10,2015 04:10 AM Mar 11,2015 11:44 AM JavaScript 1
loading
Tags: ejTreeView
Muhammad Masood
Asked On March 10, 2015 04:10 AM

Hello,

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

Regards,

Sasikala Nagarajan [Syncfusion]
Replied On March 11, 2015 11:44 AM

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

[script]

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

                                    {

                                    alert("itemclicked");

                                    });

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.

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

Sasikala Nagarajan

CONFIRMATION

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.

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

;