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 });//这样无法更新
}
}