0
我一直在尝试更新我的网格的整个行,但有问题。我am能够更新单个单元格(如果它没有格式化程序),但我希望能够更新整个行。或者,我可以更新该列,但如果它具有格式化程序,则无法使其工作。更新整个dojox.grid.datagrid行
下面是我使用更新网格代码:
grid.store.fetch({query : { some_input : o.some_input },
onItem : function (item) {
dataStore.setValue(item, 'input', '123'); //works!
dataStore.setValue(item, '_item', o); //doesn't work!
}
});
我的网格结构:
structure: [
{ type: "dojox.grid._CheckBoxSelector"},
[[{ name: "Field1", field: "input", width:"25%"}
,{ name: "Field2", field: "another_input", width:"25%"}
,{ name: "Field3", field: "_item", formatter:myFormatter, width:"25%"}
,{ name: "Field4", field: "_item", formatter:myOtherFormatter, width:"25%"}
]]
]