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

Disable resource change when dragging

Thread ID:





129015 Feb 21,2017 07:33 PM UTC Feb 23,2017 05:26 AM UTC JavaScript 3
Tags: ejSchedule
Asked On February 21, 2017 07:33 PM UTC

How can I disable changing an appointment resource during drag and drop. I want to be able to change the dates.

Karthigeyan Krishnamurthi [Syncfusion]
Replied On February 22, 2017 10:21 AM UTC

Thank you for contacting Syncfusion support.   
We suspect that your requirement is to prevent the appointment drag and drop feature between resources and for the same we have prepared a sample which can be viewed from the below link.   
In a sample, one resource appointment cannot be drag and dropped to another resource and kindly refer the below code example used in a sample.   
function OnDragStart(args) { // this function will be called when drag action start 
            resId = args.appointment.ownerId; 
function OnDragStop(args) { // this function will be called while dropping app 
            if (resId != args.appointment.ownerId) 
                args.cancel = true; 

If we have misunderstood your requirement or else if the above sample doesn’t satisfy your requirement, kindly share the code example/image/video demo which clearly depicts your requirement to serve you better.    


Replied On February 22, 2017 04:01 PM UTC

Thank you. That is the solution I was looking for.

Karthigeyan Krishnamurthi [Syncfusion]
Replied On February 23, 2017 05:26 AM UTC

Hi Brian, 
We are happy that our solution has fulfilled your requirement. 
Please let us know if you need further assistacne. 


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