我有3个grid
grid1中有很多数据,我想通过选择传递把grid1中的某几行数据传到grid2中,选完后把grid2中选好的数据传到grid3中。。。。。。。。
请问这个功能该如何实现!!
我有3个grid
grid1中有很多数据,我想通过选择传递把grid1中的某几行数据传到grid2中,选完后把grid2中选好的数据传到grid3中。。。。。。。。
请问这个功能该如何实现!!
grid1 -> grid2
[code="js"]
var records = grid1.getSelectionModel().getSelections();
var newRecords = [];
Ext.each(records, function(record){
newRecords.push(new grid2.store.recordType(record.data));
});
grid2.store.clear();
grid2.store.add(newRecords);
[/code]