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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

rowDragStop cancel

Thread ID:

Created:

Updated:

Platform:

Replies:

140640 Oct 30,2018 08:55 AM UTC Oct 31,2018 12:13 PM UTC JavaScript 1
loading
Tags: ejGantt
Tomasz Tomczykiewicz
Asked On October 30, 2018 08:55 AM UTC

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

Jesus Arockia Sankaran S [Syncfusion]
Replied On 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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;