thejoker101
22 May 2007, 7:56 AM
Would it be possible to change the remove function in Store to also take an array of Records or a single Record? Using multiple select, the user may want to delete several records and I see it kind of pointless to remove one record at a time when all could be removed at the same time and especially if you run a script to remove them in the database it seems pointless to run the script for each removed item.
Possible change:
bulkRemove : function(records) {
for (i = 0; i < records.length; i++) {
this.remove(records[i]);
}
this.fireEvent("bulkremove",this,records);
},
This just involved adding a bulkremove function and event. Since the GridView seems to depend upon remove firing on a single row, it didn't seem feasible to modify that function.
Possible change:
bulkRemove : function(records) {
for (i = 0; i < records.length; i++) {
this.remove(records[i]);
}
this.fireEvent("bulkremove",this,records);
},
This just involved adding a bulkremove function and event. Since the GridView seems to depend upon remove firing on a single row, it didn't seem feasible to modify that function.