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

Disable resource change when dragging

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

3 Replies

KK Karthigeyan Krishnamurthi Syncfusion Team 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.   
 
<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 



BR Brian February 22, 2017 04:01 PM UTC

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


KK Karthigeyan Krishnamurthi Syncfusion Team 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. 
 
Regards, 
Karthigeyan 


Loader.
Live Chat Icon For mobile
Up arrow icon