We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Disable drag has effect to other rows

Hi,

When I disable row drag in rowDragStartHelper event it also disables other rows. 

Best regards,
Tomasz Tomczykiewicz

1 Reply

JA Jesus Arockia Sankaran S Syncfusion Team January 14, 2020 01:07 PM UTC

Hi Tomasz, 
 
We have analyzed your query and prepared a sample based on your requirement. In this sample we have used rowDragStartHelper function. In that we have canceled the drag for particular row, by setting args.cancel as true also set the cloneElement as empty string to enable the row Drag for other elements. Please find the code example for this. 
 
<ejs-gantt ref="gantt" 
     //... 
    : rowDragStartHelper="rowDragStartHelper" 
></ejs-gantt> 
 
methods: { 
  rowDragStartHelper: function(args) { 
     if (args.data.TaskID === 2) { 
        args.cancel = true; 
        args.cloneElement = ""; 
     } 
  } 
} 
Please find the below sample link. 
 
If the above does not meet your requirement or we misunderstood your requirement please share the below details to validate further on your requirement.  
  1. share the code example of the sample.
  2. Share the video of the drag issue sample.
Regards, 
Jesus Arockia Sankaran S 


Loader.
Live Chat Icon For mobile
Up arrow icon