var field = e.field;
var record = e.record;
var value = 0;
var isChange = false;
if (!grid1.isLeaf(record)) {
var children = grid1.getAllChildNodes(record);
for (var j = 0; j < children.length; j++) {
for (var key in children[j]) {
if (key == field && !isNaN(children[j][key]) && grid1.isLeaf(children[j])) {
value += children[j][key];
isChange = true;
}
}
}
if (isChange) {
grid1.updateRow(record, { field: value });//这样无法更新
}
}作者: factory 时间: 2013-8-26 16:03:25
xiaoNiuNew 发表于 2013-8-26 15:14
function onDrawCell(e) {