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.
Unfortunately, activation email could not send to your email. Please try again.

Disable resource change when dragging

Thread ID:

Created:

Updated:

Platform:

Replies:

129015 Feb 21,2017 02:33 PM Feb 23,2017 12:26 AM JavaScript 3
loading
Tags: ejSchedule
Brian
Asked On February 21, 2017 02:33 PM

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 05:21 AM

   
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.   
 
<Code> 
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; 
        } 
</Code> 

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.    


Regards, 
Karthigeyan 


Brian
Replied On February 22, 2017 11:01 AM

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

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

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


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.

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.

;