SGShyam G Syncfusion Team December 8, 2016 01:43 PM UTC
We suspect that while dragging the connector ends, you need to remove the connector only if the connection is not established between the nodes. If yes, please connectorSourceChange and connectorTargetChange events to achieve your requirement. If we misunderstood your requirement, please provide us more details such as video or use case in which you need to remove the connector.
For example,I run this demo locally, and i edit the control.js,add connectorSourceChange and connectorTargetChange,
SGShyam G Syncfusion Team December 9, 2016 09:30 AM UTC
We suspect that you need to remove the connector only if the connection is not established between the nodes while drawing the connector using tools. If yes, please use connectorCollectionChange to achieve your requirement. Also if an existing connector has an connection between the nodes, you can move the connectors and can cancel it in the event(connectorSourceChange and connectorTargetChange) to revert back the connection. You cannot remove it in the event(connectorSourceChange and connectorTargetChange)
Sorry ,I has an question, If i used the connectorCollectionChange , I can't set connectorSourceChange and connectorTargetChange.
I need set connectorCollectionChange ,connectorSourceChange,connectorTargetChange.
If I only set connectorCollectionChange,It removed the connector only if the connection is not established between the nodes when I insert the connector first time.But when I changed the source or target,The connector not removed.
I need valied the connector when i insert or update.
I need help,please~~
SGShyam G Syncfusion Team December 27, 2016 12:44 PM UTC
We considered “Exception raised while removing connectors in the connectorSourceChange and connectorTargetChange event”as an issue and a support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates.