Kendo ui datasource refresh?

谁说我不能喝 提交于 2019-11-28 07:00:39

问题


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:


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


来源:https://stackoverflow.com/questions/18459848/kendo-ui-datasource-refresh

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!