问题描述
我已经很好地使用了剑道网格和图表,并使用以下示例代码对其进行了刷新:
I have used kendo grids and charts fine and refreshed them with the following example code:
$("#Product").data("kendoGrid").dataSource.read();
然而,我使用数据源只是为了在不同的视图中提供一些基本数据,就像在这个例子中它不使用网格 http://demos.kendoui.com/web/datasource/index.html
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?
谢谢,马特
推荐答案
好像是用dataSource
只读取了数据,你也需要像这样刷新grid:
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();
这篇关于Kendo ui 数据源刷新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!