Hi!
I have a kendo grid in my MVC project, with inline editing enabled and everything works beautifully. I use read, update and create methods on the datasource to manage the data.
I also have a summary section on my page, so after a user edits a row, i need to update the summary and there is no "built in method" on the DataSource for this.
So after some investigation, it seems i need to use the requestEnd event, however, as soon as i do that, the read, update and create methods stop working.
Is there a workaround for this?
Below is small piece of the code, I've removed some not relevant bits:
.DataSource(dataSource => dataSource
.Ajax()
.ServerOperation(false)
.AutoSync(true)
.Model(model => model.Id(i => i.Id))
.Read(read => read.Action("Index", "InvoiceGrid", Model.SelectedVendorId))
.Update(update => update.Action("UpdateGrid", "InvoiceGrid"))
.Create(create => create.Action("AddInvoice", "InvoiceGrid", new { batchId = batch.batch.Id }))
//.Events(ev => ev.RequestEnd("refreshSummary"))
).ToHtmlString()
If i uncomment the Events line above, it breaks the read, update and create methods.
Is there a workaround for this?
Bruce