DOJO 更新数据源方法

前端之家收集整理的这篇文章主要介绍了DOJO 更新数据源方法前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

Refreshing the content of a grid

There are times when you may wish to update the content of the grid. For example,a button on the screen may cause an xhrGet to retrieve a new set of information that you want to display in the table. The following code snippet can be used to update the grid:

1
2
3
var newStore = new dojo.data.ItemFileReadStore({data: {... some data ...});
var grid = dijit.byId("gridId");
grid.setStore(newStore);
原文链接:https://www.f2er.com/dojo/291805.html

猜你在找的Dojo相关文章