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.

Problem with drag and drop

Thread ID:

Created:

Updated:

Platform:

Replies:

125163 Jul 26,2016 03:06 PM Jul 27,2016 08:26 AM JavaScript 1
loading
Tags: ejSchedule
Mike Rosenberger
Asked On July 26, 2016 03:06 PM

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. 


Karthigeyan Krishnamurthi [Syncfusion]
Replied On July 27, 2016 08:26 AM

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  


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.

;