Hi team,
i would like to know that how can i initiate an event from store itself to the other components who wants to listen as data in store changes or loads.
One possible solution i know is using application level events however i am not able to initiate any application level call from mystore.js file example code given below
Code:
Ext.define('NameSpace.store.myStore', {
extend: 'Ext.data.Store',
constructor: function(cfg) {
var me = this;
cfg = cfg || {};
me.callParent([Ext.apply({
autoLoad: true,
storeId: 'someID',
proxy: {
type: 'ajax',
url: 'http://www.someUrl.com',
reader: {
type: 'json',
root: 'response'
}
}
},
cfg)]);
},
load: function()
{
this.application.fireEvent('storeisloaded');
}
});
i can handle events raised by any other component.
any input or suggestion is appreciated.
Regards
UT
Senior PHP Developer
Leewayhertz Technologies (http://www.leewayhertz.com)