Hi there,
I can see from your Batch editing demo that the grid is configured to use InCell editing mode. However, I am trying this with InLine editing mode:
@(Html.Kendo().Grid(Model.MapDetails)
.Name("MapDetails")
.Columns(columns =>
{
columns.Bound(p => p.Scale).Title("Scale");
columns.Bound(p => p.PageNo).Title("PageNo");
columns.Command(command => { command.Edit(); command.Destroy(); });
})
.Editable(editable => editable.Mode(GridEditMode.InLine))
.ToolBar(toolbar =>
{
toolbar.Create();
})
.DataSource(dataSource => dataSource
.Ajax()
.Batch(true)
.PageSize(20)
.ServerOperation(false)
)
)
However, when attempting to save the row, the grid is failing as it is attempting to trigger a POST action - it does not appear to be respecting the Batch edit mode.
The reason for I am trying this is that using InCell editing it is letting me complete a row without actually triggering all client side validation. For example, using InCell editing:
- Click Add New Record
- New row added, Scale cell selected in first column - client side validation enabled for this
- I can complete this cell and then Add the row to the datasource - without the validation being triggered for the second cell in the Page No column.
This is not ideal - using Inline editing, whole row goes into edit mode and all client side validation is triggered. Can you advise if this mode is supported with batch editing and if not, is there a suitable workaround you could suggest?
Thanks