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.

How can I call inline edit manually?

Thread ID:

Created:

Updated:

Platform:

Replies:

131578 Jul 17,2017 12:38 PM Jul 19,2017 02:07 AM JavaScript 3
loading
Tags: ejTreeView
Stanislav
Asked On July 17, 2017 12:38 PM

Hi.

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?

Thanks.



Ashokkumar Balasubramanian [Syncfusion]
Replied On July 18, 2017 10:16 AM

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. 
 
[Script] 
        var treeObj=$("#treeView").ejTreeView("instance"); 
        //get the selected node 
        var node = $(treeObj.getSelectedNode()); 
        var target = $(node).find("a.e-text"); 
        setTimeout(function () { 
                target.dblclick(); 
        }, 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. 
 
Regards, 
Ashokkumar B. 


Stanislav
Replied On July 18, 2017 10:37 AM

I tried the same, but without setTimeout.

Yes, now this working.

Thanks a lot!


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

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


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.

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.

;