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

Link - Select, but no move

I have a DiagramWebControl with two nodes connected by one link.

I want the User to be able to do the following:

- Select a Node
- Move a Node (which will redraw the connected link)
- Select a Link
- Do not allow a User to move or drag the link on its own.

I can do everything apart from the last one and when I set Link.LineStyle.AllowMove = false, the code says this is a deprecated function, but I cannot find anything else which is similar.

1 Reply

NR Nandakumar R Syncfusion Team October 25, 2007 08:14 PM UTC

Hi Peter,

I regret for the delay in getting back to you on this issue.

'The cancellation of the connector movement using the AllowMove property is failing' is suspected to be a defect and we have notified our development team on this regard. We will update you once we hear back from them. This can be achieved on other way as shown here.

[C#]

this.DiagramWebControl1.Model.EventSink.PinPointChanging += new PinPointChangingEventHandler(EventSink_PinPointChanging);

void EventSink_PinPointChanging(PinPointChangingEventArgs evtArgs)
{
LineConnector con = evtArgs.NodeAffected as LineConnector;
if (con is LineConnector)
evtArgs.Cancel = true;
}


http://websamples.syncfusion.com/samples/Diagram.Web/5.2.0.25/F69142/main.htm

Please try this and let me know if this helps.

Regards,
Nanda

Loader.
Live Chat Icon For mobile
Up arrow icon