Kendo UI MVVM Grid Refresh/Reload

Nick S

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?

chiapa

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();

Here is an example fiddle

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related