我下载了一个Kendo Scheduler演示,并将其用作项目的基础。
但是,当我将日期设置为默认值“ 2013,6,13”以外的任何其他事件时,该事件将无法保存,甚至无法触发控制器!
请帮助!
这是索引页面
@(Html.Kendo().Scheduler<HoursLogging.Models.HoursLogging.HoursWorkedModel>()
.Name("scheduler")
.Date(new DateTime(2013, 6, 13))
.StartTime(new DateTime(2013, 6, 13, 7, 00, 00))
.Height(800)
.Views(views => {
views.DayView();
views.WeekView(weekView => weekView.Selected(true));
views.MonthView();
views.AgendaView();
})
.Events(evt => { evt.Remove("RemoveEvent").Edit("EditEvent"); })
.Editable(editable =>
{
editable.TemplateName("CustomEditorTemplate");
})
//.Timezone("Etc/UTC")
.DataSource(d => d
.Model(m => {
m.Id(f => f.HoursWorkedId);
})
.Events(e => e.Error("error_handler"))
.Read("GetHoursWorkedForUser", "HoursWorked")
.Create(c => c.Action("SaveHoursWorked", "HoursWorked").Data("GetProjectAndTaskIDs"))
.Destroy(c => c.Action("DeleteHoursWorked", "HoursWorked"))
.Update(c => c.Action("UpdateHoursWorked", "HoursWorked"))
)
)