Hi Heming,
Your suggestion works really well, but I am encountering some problem. Here is my code:
data = {items:items};
store = new dojo.data.ItemFileWriteStore({data:data});
store.fetch({onBegin:function(total){alert("there are "+total+" items in store");}});
if (boxId=="checkTest1"){
for (i=0; i<items.length; i++){
var item=items;
var value = store.fetch({query:{},onItem:function(item){alert(store.getValues(item, "Shape_Leng"));}});
store.setValues(item, "indValue", value);
}
}
grid.setStore(store);
My 'alert' on values returns the right values (and the right count of values), but it does not populate the grid. It fills in the values as [object Object]. Would you know why is this happening?
Thanks
Samir