I changed data in the Processing Order column (and it shows the red triangle in upper left corner of the cell) and clicked the 'Save Changes' button but the controller doesn't get hit. I've checked the controller name and method to make sure it matches. Everything seems right. I tried copying the .update statement from another working page in the same controller and it doesn't reach the controller/action method either.
The F12 console doesn't show errors.
VIEW
=======================================
@(Html.Kendo().Grid<Verdant.ViewModels.Manage.View_Remit_Config_Contract_PayeeVM>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(o => o.EntityName).Width(70);
columns.Bound(o => o.ProcessingOrder).Width(30);
columns.Command(command => command.Destroy()).Width(15);
})
.ToolBar(toolbar =>
{
toolbar.Save();
toolbar.Custom().Text("Add Payee").Action("RemitConfigurationPayeeAdd", "Manage", new { remitItemID = @Html.Raw(Model.RemitItemID) });
})
.Editable(editable => editable.Mode(GridEditMode.InCell))
.DataSource(dataSource => dataSource
.Ajax()
.Batch(true)
.Model(model =>
{
model.Id(e => e.RemitItemID);
model.Field(e => e.RemitItemID).Editable(false);
model.Field(e => e.EntityName).Editable(false);
model.Field(e => e.ProcessingOrder).Editable(true);
})
.Read(read => read.Action("RemitConfigurationContract_Payee", "Manage", new { remitItemID = @Html.Raw(Model.RemitItemID) }))
.Update(update => update.Action("RemitConfigurationPayee_Update", "Manage"))
.Destroy(destroy => destroy.Action("RemitConfigurationPayee_Delete", "Manage"))
.PageSize(20)
.ServerOperation(false)
.Events(events => events.Error("error_handler"))
)
)
CONTROLLER
===============
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult RemitConfigurationPayee_Update([DataSourceRequest] DataSourceRequest request, [Bind(Prefix = "models")]IEnumerable<View_Remit_Config_Contract_PayeeVM> payees)
{
if (payees != null && ModelState.IsValid)
{
foreach (var p in payees)
{
ManageFunctions.RemitConfigurationPayee_Update(p);
}
}
return Json(payees.ToDataSourceResult(request, ModelState));
}