Dec 07, 2012, 2:08 PM
Store - Remove All Similar Values - Help!!?!
I am despertely trying to remove all records in a store that share a similar "PackageID" value - so, whatever value is passed into the function - all records with a similar value - remove from the store - I am trying the below, but every step I take I get JS errors:
var deleteselectgroup = function (val) {
var group = Ext.getCmp('GridPanel2').store.getById(val).get('PackageID');
Ext.getCmp('GridPanel2').store.query("PackageID", group).each(function (record) {
Ext.getCmp('GridPanel2').store.remove(record);
});
}