Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Stop dragging of Link once they created (Read 1998 times)
SL_developer
YaBB Newbies
*
Offline


coding rocks

Posts: 43
Joined: Jul 26th, 2011
Stop dragging of Link once they created
Nov 16th, 2011 at 6:59am
Print Post  
Hi,

How can I prevent the dragging of Link once they created with any Node?

If I have two Nodes A & B , created the link from A to B, I need to Cancel the dragging of this link to any other Node.

I found one Event, this event raise while modifying the created link

  void ddtarget_LinkModified(object sender, LinkEventArgs e)
       {
        
       }

so please tell me what code I need to write in this event for preventing the link modification.

Thanks
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Stop dragging of Link once they created
Reply #1 - Nov 16th, 2011 at 7:06am
Print Post  
You could set the link's AllowMoveStart and AllowMoveEnd properties to false from the LinkCreated handler. Alternatively, call e.CancelDrag() from LinkModifying handler.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
SL_developer
YaBB Newbies
*
Offline


coding rocks

Posts: 43
Joined: Jul 26th, 2011
Re: Stop dragging of Link once they created
Reply #2 - Nov 16th, 2011 at 7:18am
Print Post  
Hi
Thanks for quick reply,

AllowMoveStart and AllowMoveEnd properties are working & also e.CancelDrag() too.


Thank you so much.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint