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 can I call inline edit manually?

Thread ID:





131578 Jul 17,2017 04:38 PM UTC Jul 19,2017 06:07 AM UTC JavaScript 3
Tags: ejTreeView
Asked On July 17, 2017 04:38 PM UTC


I need to make inline edit for tree items. By double click event it works ok.  But how I can use my separate button "Edit" for this?
Could you please give advice how can I do this?


Ashokkumar Balasubramanian [Syncfusion]
Replied On July 18, 2017 02:16 PM UTC

Hi Stanislav, 
Thanks for contacting Syncfusion support. 
We have analyzed your requirement (“Edit the TreeNode using button click event”). You can achieve your requirement by manually calling the dblclick method. Please check the below code snippet. 
        var treeObj=$("#treeView").ejTreeView("instance"); 
        //get the selected node 
        var node = $(treeObj.getSelectedNode()); 
        var target = $(node).find("a.e-text"); 
        setTimeout(function () { 
        }, 50); 
For your reference, we have prepared the simple sample, please check the sample in below playground location. 
Please let us know, if you the provided information’s are helpful to achieve your requirement or not. 
Ashokkumar B. 

Replied On July 18, 2017 02:37 PM UTC

I tried the same, but without setTimeout.

Yes, now this working.

Thanks a lot!

Ashokkumar Balasubramanian [Syncfusion]
Replied On July 19, 2017 06:07 AM UTC

Hi Stanislav, 
Most Welcome. 
Please let us know if you need further assistance. 
Ashokkumar B. 


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