is it possible to reload the data during a drag and drop of appointments during a change of week?
We want to re-interrogate our server and reload the week's schedule when we move a drag and drop appointment from one week to another
Thanks
|
public JsonResult LoadData(Params param) // Here we get the Start and End Date of current view, based on that can filter the data and return to Scheduler
{
var data = db.ScheduleEventDatas.Where(app => (app.StartTime >= param.StartDate && app.StartTime <= param.EndDate) || (app.RecurrenceRule != null && app.RecurrenceRule != "")).ToList(); // Here filtering the events based on the start and end date value.
return Json(data, JsonRequestBehavior.AllowGet);
} |
Thank you for that answer
I also want to limit the drag and drop of an appointment over 2 weeks.
How to do so that the user can just jump from week1 to week2 (only 2 weeks, no more) when dragging and dropping ?
Regards