I would like to do something similar to the Batch editing example found here: http://demos.telerik.com/kendo-ui/web/grid/editing.html
However, several pieces of the configuration cause my page to never finish loading. Accessing the page will cause the loading icon to appear in the tab of my web browser, but the page never finishes. The Index method of my page is hit, and returns the View, but the Read AJAX method is never called, and the display never updates.
Adding the following things to the configuration causes this issue for me:
in .Columns:
columns.Command(command => command.Destroy()).Width(110);
.ToolBar(toolbar => {
toolbar.Create();
toolbar.Save();
})
.Editable or
.Editable(editable => editable.Mode(GridEditMode.InCell))
For example, this produces a read-only grid:
And this produces the issue:
I don't get any error messages in Visual Studio or the browser, or any indication of what is going on.
Any help would be appreciated.
However, several pieces of the configuration cause my page to never finish loading. Accessing the page will cause the loading icon to appear in the tab of my web browser, but the page never finishes. The Index method of my page is hit, and returns the View, but the Read AJAX method is never called, and the display never updates.
Adding the following things to the configuration causes this issue for me:
in .Columns:
columns.Command(command => command.Destroy()).Width(110);
.ToolBar(toolbar => {
toolbar.Create();
toolbar.Save();
})
.Editable or
.Editable(editable => editable.Mode(GridEditMode.InCell))
For example, this produces a read-only grid:
@(Html.Kendo().Grid<AccountManagement.Business.ViewModels.Areas.DM.RehireDocumentSettingViewModel>()
.Name(
"DocumentSettings"
)
.Columns(columns => {
columns.Bound(ds => ds.FormID);
columns.Bound(ds => ds.DocumentDateTypeName);
columns.Bound(ds => ds.RemoveIfOlderThanDays);
}
)
.Navigatable()
.Sortable()
.Scrollable()
.DataSource(dataSource => dataSource
.Ajax()
.Batch(
true
)
.ServerOperation(
false
)
.Events(events => events.Error(
"error_handler"
))
.Model(model => model.Id(ds => ds.FormID))
.Create(
"RehireDocumentSetting_Editing_Create"
,
"RehireSetup"
)
.Read(
"RehireDocumentSetting_Editing_Read"
,
"RehireSetup"
)
.Update(
"RehireDocumentSetting_Editing_Update"
,
"RehireSetup"
)
.Destroy(
"RehireDocumentSetting_Editing_Destroy"
,
"RehireSetup"
)
)
)
And this produces the issue:
@(Html.Kendo().Grid<AccountManagement.Business.ViewModels.Areas.DM.RehireDocumentSettingViewModel>()
.Name(
"DocumentSettings"
)
.Columns(columns => {
columns.Bound(ds => ds.FormID);
columns.Bound(ds => ds.DocumentDateTypeName);
columns.Bound(ds => ds.RemoveIfOlderThanDays);
}
)
.Navigatable()
.Sortable()
.Scrollable()
.Editable()
.DataSource(dataSource => dataSource
.Ajax()
.Batch(
true
)
.ServerOperation(
false
)
.Events(events => events.Error(
"error_handler"
))
.Model(model => model.Id(ds => ds.FormID))
.Create(
"RehireDocumentSetting_Editing_Create"
,
"RehireSetup"
)
.Read(
"RehireDocumentSetting_Editing_Read"
,
"RehireSetup"
)
.Update(
"RehireDocumentSetting_Editing_Update"
,
"RehireSetup"
)
.Destroy(
"RehireDocumentSetting_Editing_Destroy"
,
"RehireSetup"
)
)
)
I don't get any error messages in Visual Studio or the browser, or any indication of what is going on.
Any help would be appreciated.