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
close icon

rowDragStop cancel

Hi,

I have a problem with event rowDragStop. I have situations when I don't want to allow to change the position of the element and I set cancel property to true. Then I get an error in the console. But sometimes it works.

if (args.requestType === 'insertAbove') {
if (args.targetRow.item.isStage && !args.draggedRow.item.isStage)
args.cancel = true; // It works and doesn't throw an error
else if (!args.targetRow.item.isStage && args.draggedRow.item.isStage)
args.cancel = true; // It doesn't work and throws an error
}

Best regards,
Tomasz Tomczykiewicz

Attachment: rowDragStop_6c79b2d6.zip

1 Reply

JA Jesus Arockia Sankaran S Syncfusion Team October 31, 2018 12:13 PM UTC

Hi Tomasz, 

Thanks for using Syncfusion Support.  

We have analyzed your code snippet and attached image, but we could not able to replicate the issue in our side. By checking the provided image we suspect that you are doing client side chart customization in the Gantt. Can you please share us your client side code to provide you with the proper solution. We have also prepared a sample for your reference with the given scenario.  
Please get back to us if you need any further assistance. 
Regards,  
Jesus Arockia Sankaran S 


Loader.
Live Chat Icon For mobile
Up arrow icon