Here is a weird one that I can't seem to figure out. I have a scheduler that already shows other events. My problem is that whenever I create a new event or delete an existing event the "create" method gets called for the existing events again. So every time I do a single "create" all my existing events get duplicated. The closest thing I could find in this forum is to make sure I have the "batch" turned off but that doesn't make any difference. Is there some setting I am missing? My code is below...
@(Html.Kendo().Scheduler<Kendo.Mvc.Examples.Models.Scheduler.TaskViewModel>() .Name("scheduler") .Date(DateTime.Now) .StartTime((DateTime)ViewBag.StartTime) .Timezone((string)ViewBag.TimeZone) .AllDaySlot(false) .Editable(e => { e.Create(true); e.Destroy(true); e.Update(true); }) .Height(590) .Views(views => { views.DayView(); views.WeekView(v => v.Selected(true)); views.MonthView(); views.AgendaView(); }) .DataSource(d => d .Model(m => { m.Id(f => f.TaskID); m.Field(f => f.TaskID); m.Field(f => f.Title); m.Field(f => f.ProviderId); m.Field(f => f.Start); m.Field(f => f.StartTimezone); m.Field(f => f.EndTimezone); m.Field(f => f.Description); m.Field(f => f.RecurrenceID); m.Field(f => f.RecurrenceRule); m.Field(f => f.RecurrenceException); m.Field(f => f.OwnerID); m.Field(f => f.IsAllDay); }) .Read(read => read.Action("Read", "Scheduler").Data("additionalData")) .Create(create => create.Action("Create", "Scheduler").Data("additionalData")) .Update(update => update.Action("Update", "Scheduler")) .Destroy(destroy => destroy.Action("Destroy", "Scheduler")) .ServerOperation(true) ))public virtual JsonResult Create([DataSourceRequest] DataSourceRequest request, TaskViewModel task, int? providerId){ ... return Json(new[] { task }.ToDataSourceResult(request, ModelState), JsonRequestBehavior.AllowGet);}