I am attempting to create a grid that has the Edit (Update) command available.
When I run the application with the edit options commented out it renders, but when I leave them in I get no errors on the front end and the page is blank. The read controller is not even being hit.
Here is the view code. Any ideas? It seems adding the Edit options somehow breaks the grid.
@
using
Kendo.Mvc.UI
@(Html.Kendo().Grid<HoldingOvenEditor.Models.HOGridModel>()
.Name(
"grid"
)
.Columns(columns =>
{
columns.Bound(p => p.OvenName);
columns.Command(command => { command.Edit(); }).Width(160);
//<= Comment this out to work correctly
})
.Editable(editable => editable.Mode(GridEditMode.PopUp))
//<= Comment this out to work correctly
.DataSource(dataSource => dataSource
.Ajax()
.Model(model => {
model.Id(p => p.OvenName);
model.Field(x => x.OvenName).Editable(
true
);
})
.Read(read => read.Action(
"ResourceGrid_Read"
,
"Grid"
))
.Update(update => update.Action(
"EditingPopup_Update"
,
"Grid"
))
//<= Comment this out to work correctly
)
)