2013-07-15 210 views

回答

1

您连接到电网的编辑活动,并收集所有值从而改变

var changes = []; 

grid.on('edit', function(editor, context) { 
    var originalValue = context.value; 
    var newValue = record.get(context.field); 
    if (originalValue !== newValue) { 
     changes.push(context); 
    } 
});