The Update request below is being sent as an HttpGet - how do you change the transport to indicate that it should be a post?
@(Html.Kendo().Scheduler<CIC.Web.UI.Models.TaskViewModel>()
.Name("scheduler")
.Date(DateTime.Now)
.StartTime(DateTime.Now)
.ShowWorkHours(true)
.Height(600)
.Views(views =>
{
views.DayView();
views.WorkWeekView(workWeekView => workWeekView.Selected(true));
views.WeekView();
views.MonthView();
views.AgendaView();
})
.Editable(editable =>
{
editable.TemplateName("_EditorForEventTemplate");
})
.Events(e =>
{
e.Edit("scheduler_edit");
e.Change("scheduler_change");
})
.DataSource(d => d
.Model(m =>
{
m.Id(f => f.TaskID);
m.Field(f => f.Title).DefaultValue("New Event");
m.Field(f => f.SponsorID);
m.Field(f => f.ContactEMail);
})
.Events(e => e.Error("error_handler"))
.ServerOperation(true)
.Read(read => read.Action("Events_Read", "Home").Data("getAdditionalData"))
.Create("Events_Create", "Home")
.Destroy("Events_Destroy", "Home")
.Update("Events_Update", "Home")
)
.Resources(resource =>
{
resource.Add(tvm => tvm.SponsorID)
.Title("CompanyName")
.DataTextField("DBAName")
.DataValueField("CompanyID")
.DataSource(ds => ds.Read(read => read.Action("GetSponsors", "Home")));
resource.Add(tvm => tvm.EventType)
.Title("Description")
.DataTextField("Description")
.DataValueField("Code")
.DataSource(ds => ds.Read(read => read.Action("GetEventTypes", "Home")));
})
)
@(Html.Kendo().Scheduler<CIC.Web.UI.Models.TaskViewModel>()
.Name("scheduler")
.Date(DateTime.Now)
.StartTime(DateTime.Now)
.ShowWorkHours(true)
.Height(600)
.Views(views =>
{
views.DayView();
views.WorkWeekView(workWeekView => workWeekView.Selected(true));
views.WeekView();
views.MonthView();
views.AgendaView();
})
.Editable(editable =>
{
editable.TemplateName("_EditorForEventTemplate");
})
.Events(e =>
{
e.Edit("scheduler_edit");
e.Change("scheduler_change");
})
.DataSource(d => d
.Model(m =>
{
m.Id(f => f.TaskID);
m.Field(f => f.Title).DefaultValue("New Event");
m.Field(f => f.SponsorID);
m.Field(f => f.ContactEMail);
})
.Events(e => e.Error("error_handler"))
.ServerOperation(true)
.Read(read => read.Action("Events_Read", "Home").Data("getAdditionalData"))
.Create("Events_Create", "Home")
.Destroy("Events_Destroy", "Home")
.Update("Events_Update", "Home")
)
.Resources(resource =>
{
resource.Add(tvm => tvm.SponsorID)
.Title("CompanyName")
.DataTextField("DBAName")
.DataValueField("CompanyID")
.DataSource(ds => ds.Read(read => read.Action("GetSponsors", "Home")));
resource.Add(tvm => tvm.EventType)
.Title("Description")
.DataTextField("Description")
.DataValueField("Code")
.DataSource(ds => ds.Read(read => read.Action("GetEventTypes", "Home")));
})
)