The Syncfusion® native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Is it possible to deny disconnection connector by target or source id for specific nodes? I tried args.cancel=true for collection change event, but that didn't work.
AMArunkumar Manoharan Syncfusion Team June 16, 2021 02:08 PM UTC
Hai Alex,
We have added a sample to demonstrate how to deny disconnection of connector for specific node. In this sample we used connectionChange event for denying disconnection. By checking the specific nodeId in changing state and preventing the connector disconnection. For more information, please refer to the below code snippet and sample.
Code snippet:
connectionChange: (args) => {
let diagram = this.$refs.diagramObject.ej2Instances;
if (args.state === "Changing") {
let checkNode = diagram.getObject(args.oldValue.nodeId);