Kendo ui datasource refresh?

maff2002 picture maff2002 · Aug 27, 2013 · Viewed 42.8k times · Source

I have used kendo grids and charts fine and refreshed them with the following example code:

$("#Product").data("kendoGrid").dataSource.read();

However, I have used the datasource just to provide some basic data in a different view, like in this example where it does not use the grid http://demos.kendoui.com/web/datasource/index.html

Is there a way to refresh this datasource in the same kind of way as the above code does for the grids and charts?

Thanks, Matt

Answer

Vaibhav picture Vaibhav · Feb 12, 2014

It seems to be that only the data is read with dataSource, you need to refresh the grid also like this:

$("#Product").data("kendoGrid").dataSource.read();
$("#Product").data("kendoGrid").refresh();