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. Image for the cookie policy date
close icon

Catch an event of node Drag and Drop

Hi,
I need to check certain things where user drag and drop a node (inside the diagram.Not from the pallet to the diagram).
How can i catch this event?

Thanks.


4 Replies

J. J.Nagarajan Syncfusion Team May 29, 2008 10:03 AM UTC

Hi sHIMON ,

Thanks for your interest in Syncfusion products.

The PinPointChanged event gets fired when you drag and drop a node within the diagram. You can handle this event by using the following code snippet.

this.diagram1.Model.EventSink.PinPointChanged += new PinPointChangedEventHandler(EventSink_PinPointChanged);

void EventSink_PinPointChanged(PinPointChangedEventArgs evtArgs)
{
Console.WriteLine(evtArgs.NodeAffected.Name);
}

Please let me know if this helps.

Regards,
Nagaraj



AD Administrator Syncfusion Team June 2, 2008 01:53 PM UTC

Thanks a lot.



WS Witold Slirz March 8, 2010 12:32 PM UTC

And an opposite question.
How to catch the event of dragging a node from palette onto a diagram?


WS Witold Slirz March 8, 2010 02:01 PM UTC


Loader.
Live Chat Icon For mobile
Up arrow icon