18
votes

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

1
I am not sure if I understand ? Can you explain bit more. dataSource.read() should do the job. - Vojtiik

1 Answers

35
votes

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