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.
ARAravind Ravi Syncfusion Team May 28, 2020 06:29 AM UTC
Hi Sunil,
We have created a sample to use cancel state at collection change event. When you add/delete any nodes or connectors in the diagram, collectionChange event gets fired. In the collectionChange event if you add any new node event triggers for the type of Addition. In the args type Addition and state of Changing set cancel as true. So that new node does not gets added in the diagram. Similarly when you delete any nodes from the diagram collectionChange event triggers for type Removal. So set cancel as true in the changing state so that node does not gets removed. Please find the below code snippet for how to use collection change event