Kendo ui 数据源刷新? [英] Kendo ui datasource refresh?

查看:53
本文介绍了Kendo ui 数据源刷新?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经很好地使用了剑道网格和图表,并使用以下示例代码对其进行了刷新:

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

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

然而,我使用数据源只是为了在不同的视图中提供一些基本数据,就像在这个例子中它不使用网格 http://demos.kendoui.c​​om/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 数据源刷新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆