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

Drag node end

Thread ID:





123271 Mar 2,2016 01:23 PM UTC Mar 3,2016 05:25 AM UTC JavaScript 1
Tags: ejDiagram
Luis B.Chicaiza
Asked On March 2, 2016 01:23 PM UTC

Hello guys,

Working with eJDiagram i need to capture the dragEnd event to save the last node position. Right now i'm capturing the drag event, but this is called multiple times until it arrives to the last position. I just want to call it once with the last position. Is there any way to do this?

Thank you so much

Shyam G [Syncfusion]
Replied On March 3, 2016 05:25 AM UTC

Hi Luis,

To achieve your requirement, please use dragState arguments in the drag event which returns the state of drag event (Starting, dragging, completed). please refer to the code example and online UG documentation link below.

Code example:


            //define drag event

            drag: drag,


        function drag(args) {

            //set an dragState as completed to get the node's last position

            if (args.dragState === "completed") {

                alert("node dragging completed")


UG documentation link:http://help.syncfusion.com/js/api/ejdiagram#events:drag

Shyam G


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