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

Problem with drag and drop

I have a the scheduler tied to our api as shown below

var source = ej.DataManager({
                   url: apiUrl + "api/dispatch/GetData",
                    crudUrl: apiUrl+"api/dispatch/Batch/",
                    adaptor: "UrlAdaptor"
                });


Everything reads in and comes through just great when accessing through the scheduler control.  The problem comes in where i have implemented the drag and drop of a list item as you show in your demo here.  After the item is dropped i build the object and send via 

 var scheduleObj = $("#Schedule1").data("ejSchedule");
 var obj = {
                    Subject: e.droppedElementData.text,
                    StartTime: new Date(StartDate),
                    EndTime: new Date(endTime),
                    AllDay: false,
                    Recurrence: false,
                    recurrenceRule: null,
                    StartTimeZone: new Date().getTimezoneOffset(),
                    EndTimeZone: new Date().getTimezoneOffset(),
                    Description: e.droppedElementData.text,
                    Employee: resource.id
                }
scheduleObj.saveAppointment(obj);

At this point the scheduler should call the api to save the data but it does not.  

Any help you can give would be greatly appreciated. 


1 Reply

KK Karthigeyan Krishnamurthi Syncfusion Team July 27, 2016 12:26 PM UTC

Hi Mike,   
   
Thank you for contacting Syncfusion support.   
   
We were unable to reproduce the reported issue with dragging and dropping from a list at our end and for the same we have prepared the sample with the provided code example which can be download from the following location:   
   
In the above sample, when an item is dragged and dropped in to Scheduler, controller function is called to perform CRUD operation. Kindly try with the above sample and if the issue still persists at your end, try to reproduce the error in the sample and revert, so that we can check on this further.   
   
Regards,   
Karthigeyan  


Loader.
Live Chat Icon For mobile
Up arrow icon