Diagram: Prevent removal of a swimlane

Hi ,

Is there a way to prevent a swimlane from being deleted?
I tried this:
    public collectionChange(args) {
            if (args && args.state === "Changed" && args.element) {
                if (args.type == "Removal") {
                    if (args.element && args.element.shape && args.element.shape.type === "SwimLane") {
                        args.cancel = true;
                    } else {
                        ...
                    }
                }
            }
    }

But ars.cancel does not prevent the swimlane from being removed.
Do I need to use another event / trigger?





2 Replies

GG Gowtham Gunashekar Syncfusion Team March 3, 2021 01:47 PM UTC

Hi Dimitry, 
 
Reported Issue : Swimlane is removable even if the delete constraints are excluded 
 
We can reproduce the issue and confirmed this as a defect. We have logged a defect report for this issue. We will fix this issue and provide the patch on 23rd March,2021 weekly patch release.    
     
    
Regards, 
Gowtham 



GG Gowtham Gunashekar Syncfusion Team March 23, 2021 02:00 PM UTC

Hi Dimitry,   
 
We have fixed the reported issue and included it in our patch release (v18.4.48) which is rolled out successfully.           
           
Please upgrade to the latest version packages to resolve this issue.                 
   
Regards,     
Gowtham    


Loader.
Up arrow icon