How to load sync combo stores in Extjs

var combo = Ext.componentQuery.query('form combobox') /*this fetch all combos that are child of this form (global)*/

var comboCount = len = combo.length; /*the number of combos that are in the form*/
var i = 0;

/*mask it while loading*/ยด
/*this will mask all form*/

for(; i < len; i++) {
scope: this,
callback: function(recs, operation, success) {
if(!comboCount) {
/*do what ever you need*/
/*close mask cause all stores in combo are loaded*/


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s