Disable Swimlane Lane swapping

Hello,
I've been trying to disable lane swapping in our swimlanes in Syncfusion React Diagram component, but I cannot find anywhere in the documentation how to do it.
Is it possible?

Thank you,
Alex P.

10 Replies 1 reply marked as answer

GG Gowtham Gunashekar Syncfusion Team April 7, 2021 04:07 PM UTC

Hi Alex, 
 
We have added a sample link to demonstrate how to disable the swimlane swapping. In the lane we have a property called canMove. If we set the lane’s canMoave property as false mean the we cannot drag and swap the lane. 
 
Code snippet: 
{ 
    id: "swimlane", 
    shape: { 
      type: "SwimLane", 
      orientation: "Horizontal", 
       lanes: [ 
        { 
          id: "stackCanvas1", 
          header: { 
            annotation: { content: "Consumer" }, 
            width: 50, 
            style: { fontSize: 11 } 
          }, 
          height: 100, 
          canMove: false 
        } 
      ], 
 
    }, 
    offsetX: 360, 
    offsetY: 320, 
    height: 100, 
    width: 650 
  } 
 
 
 
Regards, 
Gowtham .

Marked as answer

AP Alex Pla Alonso April 8, 2021 06:31 AM UTC

Hello Gowtham,
Thanks, that was exactly what I was looking for.
By the way, this doesn't appear in the documentation, or at least I couldn't find it. It would be really helpful if it was there for other people that has the same needs.

Thanks again, have a good day,
Alex P.


AP Alex Pla Alonso April 9, 2021 07:11 AM UTC

Hello again,
I've just realized that setting canMove to false it doesn't allow me to resize the lanes anymore. I just want to disable lane swapping but I want to maintain lane resizing enabled. Is that possible?

Thanks again,
Alex P.


GG Gowtham Gunashekar Syncfusion Team April 11, 2021 04:45 AM UTC

Hi Alex, 
 
We can able to replicate the reported issue at our end. we are validating the issue and update you with more details on 13th April, 2021. 
 
Regards 
Gowtham. 



GG Gowtham Gunashekar Syncfusion Team April 13, 2021 01:53 PM UTC

Hi Alex,  
 
Reported Issue : Resize functionality of the lane is not working if the canMove is false 
 
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 4th April ,2021 weekly patch release.    
     
    
Regards, 
Gowtham 



AP Alex Pla Alonso April 13, 2021 02:15 PM UTC

Hi Gowtham,
Thanks for your feedback.
I have a doubt. You say you're including a fix for this on 4th April release but it has already passed. Did you mean 4th May? Or you mean that it's already been released?
By the way, I cannot access the links you provide, it says access denied for me.

Thanks again, best regards,
Alex P.


GG Gowtham Gunashekar Syncfusion Team April 13, 2021 03:22 PM UTC

Hi Alex,   
 
Sorry for the inconvenience caused. Please ignore the previous update. 
 
Reported Issue : Resize functionality of the lane is not working if the canMove is false  
  
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 4th May ,2021 weekly patch release.     
      
     
Regards,  
Gowtham  




GG Gowtham Gunashekar Syncfusion Team May 4, 2021 12:55 PM UTC

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



AP Alex Pla Alonso May 12, 2021 10:06 AM UTC

Hello,
We could test this fix in the new version and can confirm it's now working for us.
Thanks again.
Best regards,


Alex P.


GG Gowtham Gunashekar Syncfusion Team May 13, 2021 11:46 AM UTC

Hi Alex,  
 
Thanks for your update. Please let us know whether you need any further assistance on this. 
 
 
Regards  
 
Gowtham 


Loader.
Up arrow icon