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

Detect when a node is moved on a diagram

Thread ID:





98128 Feb 8,2011 01:39 PM UTC Feb 16,2011 09:06 AM UTC ASP.NET Web Forms (Classic) 2
Tags: DiagramWebControl
Administrator [Syncfusion]
Asked On February 8, 2011 01:39 PM UTC


What is the correct event to trap when a node is moved?


John McAteer
Replied On February 8, 2011 08:50 PM UTC

I think I might have solved this...

trap EventSink_PinPointChanged()

then check node.PinPoint.X or .Y ?

Bala Murugan A.S [Syncfusion]
Replied On February 16, 2011 09:06 AM UTC

Hi John,

Thanks for using Syncfusion Products.

You can detect a node when it moved on a diagram by using PinPointChanged() event and this event is fired both when we move and re-size the node. So we suggest your to check which tool is currently in active. If the active tool is Move tool the node is moved. Please refer the below code snippet to achieve this.

Tool activeTool = this.diagram1.Controller.ActiveTool;
if (activeTool is MoveTool)
MessageBox.Show("Moved Node Name: "+node.Name +" PinPointX : "+node.PinPoint.X+"PinPointY : "+node.PinPoint.Y);

For your convenience, we have created a simple sample to demonstrate this and the same can be downloaded from the below link.

Kindly try the above sample and let me know your concerns.

Bala Murugan A.S


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