dojo grid 如何刷新数据
|
xxqn
2008-05-09
看了dojo的一些例子,对于dojo grid 如何刷新数据还是不太清楚,各位能否指导一下,因为刚刚接触dojo最好给个例子。
|
|
|
cscs31
2008-05-14
<script type="text/javascript">
var newStore = new dojo.data.ItemFileReadStore({data: data});//data为json数据
var my_model = new dojox.grid.data.DojoData(null, newStore,{jsId: 'my_model',query:'items: '*'',clientSort:'true'});
dijit.byId("grid").setModel(my_model);//Key Part
</script>
<div id="grid" dojoType="dojox.Grid" structure="layout"
></div>
|

