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.
Unfortunately, activation email could not send to your email. Please try again.

Link - Select, but no move

Thread ID:

Created:

Updated:

Platform:

Replies:

69142 Oct 16,2007 11:24 AM Oct 25,2007 04:14 PM ASP.NET Web Forms (Classic) 1
loading
Tags: DiagramWebControl
Peter Swallow
Asked On October 16, 2007 11:24 AM

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.

Nandakumar R [Syncfusion]
Replied On October 25, 2007 04:14 PM

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

CONFIRMATION

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.

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.

;