jeudi 29 mai 2014

how to bind a store to all the references to an xtype

so I have an xtype (extending grid) that has no store defined. in the controller I do a


Code:



grid.bindStore(store);

and now that grid is bound to that store as expected. but other references of that xtype are not.

I understand why. I want to know if there is a way of doing it with out creating a for loop of the


Code:



Ext.ComponentQuery.query('mygrid')[i].bindStore(store);




Aucun commentaire:

Enregistrer un commentaire