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

Problem with drag and drop

Thread ID:





125163 Jul 26,2016 07:06 PM UTC Jul 27,2016 12:26 PM UTC JavaScript 1
Tags: ejSchedule
Mike Rosenberger
Asked On July 26, 2016 07:06 PM UTC

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

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 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.   


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