Detach event for connector head or tail

Dear Support,
I'm using version ...56 (the last). I have complex finite state machine built with node and connectors.
When a connector connects two nodes a FSM transition is ok and data related to the process is persisted on DB.
When the user detaches an attached connector clicking on head or tail and dragging away from node I'll need to change FSM data as the transition is no more valid.
My problem is to detect this event. HeadNodeChanged or TailNodeCganged event do not fire and I have not found a way to detect the condition.

An alternative idea could be to ban the detach action using the mouse after the transition is ok, but I did not succeed on finding a way to setup that.

Could you help me?

Best regards

Domenico Mozzone

3 Replies

SC Sudhakar C Syncfusion Team May 28, 2012 01:05 PM UTC

Hi Domenico, 

Regarding HeadNode and TailNode Changed Events, we are not able to reproduce your requirement. However, we have created the sample. In that sample, drag & drop the node and connect those nodes. If you change the HeadNode or TailNode, then HeadNode or TailNodeChanged event will be fire and the message box will show the conformation. And if you change the HeadNode and TailNode as programmatically, click the button named ”Click!”. The HeadNode and TailNodeChanged event will fire then the HeadNode and TailNode will be changed. For more information please refer the following sample. If it doesn’t meet your requirement please provide more information such as sample / video. So that we are able to investigate more on your requirement. 

Please let us know if you have any concerns.

Regards,

Sudhakar.C



HeadNodeChangedEvent_2891f414.zip


DM Domenico Mozzone May 31, 2012 03:58 PM UTC

Hi Sudhakar,
please try to disconnect head or tail of a connector with a mouse click on the small square indicating head or tail and dragging away from node with left mouse button pressed the connector is not connected but event is not fired. This is my problem.
Best regards
Domenico


SC Sudhakar C Syncfusion Team June 6, 2012 12:47 PM UTC

Hi Domenico, 

Your reported query is considered as issue. We suggest you to log into Direct trac account and post your query there. We will update you the issue details in the Direct trac.

Please let us know if you have any concerns.

Regards,

Sudhakar.C


Loader.
Up arrow icon