PDA

View Full Version : removerecords event won't fire



acajulis
8 May 2012, 6:59 PM
I'm using Sencha Touch 2.0.0 and I cannot get the "removerecords" event on the Store to fire. Is this fixed in Sencha 2.0.1? The record will be removed properly (I've also tried this 3 different ways), but the event never fires:



store.fireEvent("removerecords", record);
store.sync();
//after store erases record, then re-draw canvas
store.addAfterListener( "removerecords", function(){
console.log("done delete");
});



store.remove(record);
store.sync();
//after store erases record, then re-draw canvas
store.addAfterListener( "removerecords", function(){
console.log("done delete");
});



record.erase();
record.commit();
store.sync();
//after store erases record, then re-draw canvas
store.addAfterListener( "removerecords", function(){
console.log("done delete");
});