This is a migrated thread and some comments may be shown as answers.

Ajax call while dragging an event

1 Answer 48 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Jens
Top achievements
Rank 1
Jens asked on 25 Apr 2014, 12:02 PM
Hi
I was wandering if anyone has a working example of how to make a async ajax call while dragging an scheduler event. I have a horizontal grouping on different locations (resources in the scheduler) and want to update disabled timeslots on every location while using drag and drop. I have tried a few approaches with moveStart, but none of which made any progress.

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 29 Apr 2014, 07:22 AM
Hi Martin,

I would recommend using the moveStart event instead, because the move event is triggered every time the mouse moves in any direction. This means that you will end up making a few hundred ajax requests, which could be really inefficient. Also, making a synchronous instead of asynchronous request could also help you achieve your goal, since you will get the response before the event handler exited. Then, once you have the data you could use the move event to disable the timeslots that match your criteria.

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Scheduler
Asked by
Jens
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or