PDA

View Full Version : [CLOSED][B3] load event not fired



harrydeluxe
14 Apr 2011, 3:22 PM
Ext.data.Store.loadData() fires only 'datachanged' but not 'load'


var store = Ext.create('Ext.data.Store', {
model: 'Test',
listeners: {
load: function() {
console.log('Test store loaded');
},
datachanged: function() {
console.log('Test store loaded');
}
}
});
store.loadData(sameTestData);

evant
14 Apr 2011, 3:25 PM
This is the expected behaviour. You're not loading the store from a proxy, you're just pushing data on locally.