I have defined a JsonStore and another Store using which I am creating the form panel. The problem is I would like to create the formPanel after both JsonStore and Store are loaded.
Here is my code.
Code:
var classParamStore = new Ext.data.Store({
.... lines of code ....
});
classParamStore.load();
var dsSelfMon = new Ext.data.JsonStore({
.... lines of code ....
});
dsSelfMon.load();
dsSelfMon.on('load', function() {
var formPanel_self = new Ext.FormPanel({
.... lines of code ....
});
});
How do I check for load on both Store and JsonStore ? I tried the following but does not work.
Code:
dsSelfMon.on('load', function() {
classParamStore.on('load', function() {
var formPanel_self = new Ext.FormPanel({
.... lines of code ....
});
});
});
Thanks