Thank you as always,
Scott
10 Answers, 1 is accepted
The MVC Grid actually rebind itself after such operation. Can you send us your current Grid configuration or prepare example project where the issue can be reproduced?
Update: Please note that the above works only for Telerik Extensions for MVC Grid. For the Kendo UI for ASP.NET MVC Grid there is new event "requestEnd" in the latest internal build, which can be used in your case. You can place your DataSource read method inside this event. There is event type parameter which can be used to determinate which operation is complete, and reload the data if the type is different than read.
Vladimir Iliev
the Telerik team

The RequestEnd event of the DataSource is available from the KendoUI Q2 2012, SP1 - v.2012.2.913. Please find the examples below of how to use the RequestEnd event:
- KendoUI MVC wrappers:
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action(
"Products_Read"
,
"Grid"
))
.Events(events => events.RequestEnd(
"onRequestEnd"
))
)
)
<script>
function
onRequestEnd(e) {
//RequestEnd handler code
}
</script>
- KendoUI Web:
function onRequestEnd() {
//RequestEnd event handler code
}
$(document).ready(
function
() {
$(
"#grid"
).kendoGrid({
dataSource: {
type:
"odata"
,
transport: {
},
schema: {
model: {
fields: {
OrderID: { type:
"number"
},
Freight: { type:
"number"
},
ShipName: { type:
"string"
},
OrderDate: { type:
"date"
},
ShipCity: { type:
"string"
}
}
}
},
requestEnd: onRequestEnd
},
Kind Regards,
Vladimir Iliev
the Telerik team


How can I upgrade to Q2 2012, SP1 - v.2012.2.913. Currently I am using trial version of kendoui.trial.2012.2.710.
Regards,
Nandan
Please note that the trial accounts currently are not eligible for downloading service packs, however in current case you can open new support ticket to send you the new version of KendoUI.
Vladimir Iliev
the Telerik team

function onRequestEnd(e)
{
alert("on request end");
var grid = $("#grid").data("kendoGrid");
grid.dataSource.read();
}

function onGridRequestEnd(evt) {
if (evt.type === "update") {
evt.sender.read();
}
}
In my case: The automatic update fails when when one of the columns is edited as a custom template in EditorTemplates. In that case, if a dropdown change changes multiple columns, not all columns are updated.

The statement below fires on "Save" but not on "Cancel". What is needed for the capture the cancel button click?
.Events(events => events.RequestEnd("onRequestEnd"))
You can add an event handler to the cancel event of the Kendo UI Grid:
https://docs.telerik.com/kendo-ui/api/javascript/ui/grid/events/cancel
Kind Regards,
Alex Hajigeorgieva
Progress Telerik