@(Html.Kendo().Grid<intranet.mvc5b.Models.Arrangement.Lokaler>()
.Name("gridLokaler")
.Columns(col =>
{
col.Bound(p => p.ID).Hidden(true);
col.Bound(p => p.Lokale);
col.Bound(p => p.Aktiv).Width(60).ClientTemplate("#=Aktiv? 'Ja' : 'Nej' #");
col.Command(command => { command.Edit()
.Text("Ret")
.UpdateText("Gem")
.CancelText("Afbryd");
}).Width(90);
})
.ToolBar(toolbar => toolbar.Create().Text("Opret lokale"))
.Editable(editable => editable.Mode(GridEditMode.PopUp).TemplateName("arrLokaleEdit"))
.Pageable()
.DataSource(dataSource => dataSource
.Ajax()
.ServerOperation(false)
.PageSize(15)
.Events(events => events.Error("error_handler"))
.Model(model => model.Id(p => p.ID))
.Update("Lokaler_Update", "Arrangement")
.Create("Lokale_Opret", "Arrangement")
.Read("Lokale_Read", "Arrangement")
)
.Deferred()
)
This grid shows ok, but when I edit a row and save without making any changes
it calls the create action insted of update
Im using 2017.1.223.545