I am getting the following error when I am pressing the Edit button for the ListView. I am not sure why. The Data from the model appears and I can edit the input fields but it does not call the Update method on the controller.
Uncaught SyntaxError: Unexpected identifier
vt.getter @ kendo.all.min.js:9
ut.extend.get @ kendo.all.min.js:11
S.extend.get @ kendo.all.min.js:12
E.widget.value.v.extend.init @ kendo.all.min.js:12
b.extend.applyBinding @ kendo.all.min.js:13
I.extend.bind @ kendo.all.min.js:13
a @ kendo.all.min.js:12
a @ kendo.all.min.js:12
a @ kendo.all.min.js:12
a @ kendo.all.min.js:12
a @ kendo.all.min.js:12
s @ kendo.all.min.js:12
c.extend.refresh @ kendo.all.min.js:26
c.extend.init @ kendo.all.min.js:26
(anonymous function) @ kendo.all.min.js:10
b.extend.each @ jquery.min.js:3
b.fn.b.each @ jquery.min.js:3
vt.plugin.e.fn.(anonymous function) @ kendo.all.min.js:10
n.ui.DataBoundWidget.extend.edit @ kendo.all.min.js:33
(anonymous function) @ kendo.all.min.js:33
b.event.dispatch @ jquery.min.js:3
b.event.add.v.handle @ jquery.min.js:3
MVC Code for the ListView
@(Html.Kendo().ListView<
RPMS.Models.ActualsHoursViewModel
>(Model)
.Name("ListView")
.TagName("div")
.ClientTemplateId("ActualsHoursTemplate")
.DataSource(dataSource => dataSource
.Model(model =>
{
model.Id(m=>m.ActualsHoursModelsId);
model.Field(m => m.ProjectId);
model.Field(m => m.HoursAllocated);
model.Field(m => m.Activities);
}
)
.ServerOperation(true)
.Batch(true)
.Create(create => create.Action("kendo_Create", "ActualsHours"))
.Read(read => read.Action("kendo_Read", "ActualsHours", new { date = "" }))
.Update(update => update.Action("kendo_Update", "ActualsHours"))
.Destroy(destroy => destroy.Action("kendo_Destroy", "ActualsHours"))
.Events(events => events.Error("error_handler"))
)
.Editable()
.Events(ev => {
ev.DataBound("initDropDownLists");
}
)
.Selectable()
// .Events(events => events.Error("error_handler"))
)