{header : "操作",renderer: function(value,metaData,record){return '<span><a href="javascript:xx('+record.get('id列')+')">添加</a></span>';
function xx(id){
var grid=Ext.getCmp('grid的id')
var store=grid.getStore();
var index = 0;
store.each(function (r) {
index++;
if (r.get('id列') == id) return false;
});
store.insert(index,newRecord)
}
报告相同问题?