These solutions (Reloading/refreshing Kendo Grid)
$('#GridName').data('kendoGrid').dataSource.read();
$('#GridName').data('kendoGrid').refresh();
do not work for a Kendo MVVM grid. Specifically $('#GridName').data('kendoGrid') returns 'undefined'.
My question is: what method could be used to trigger a grid refresh/reload via a button controller in Kendo UI MVVM grid?
Here's a solution for MVVM that allows you to refresh the dataSource of the Kendo grid. If it's the only grid on the page, the solution works fine:
$("div[data-role='grid']").data("kendoGrid").dataSource.read();
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments