Kendo ui数据源是否刷新? [英] Kendo ui datasource refresh?
本文介绍了Kendo ui数据源是否刷新?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经很好地使用了剑道网格和图表,并使用以下示例代码对其进行了刷新:
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?
谢谢,马特
推荐答案
似乎只有使用dataSource
读取数据,您还需要像这样刷新网格:
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数据源是否刷新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文