Home > DeveloperSection > Forums > Extjs - getting all stores of a view.
monica frank
monica frank

Total Post:10

Posted on    May-03-2016 1:13 AM

 sencha extjs Sencha  Sencha Cmd 

 1 Reply(s)
 330  View(s)
Rate this:
I have created a panel which has 2 grids and 4 combo boxes and every one having his own store.
Now, my problem is - is there any way to obtain all the stores using Ext.ComponentQuery or something like this Ext.StoreManager which returns all the stores of the application. I want to get stores for every specific view.

Please anyone provide me the easiest solution to do it.
Thank you.

Tarun Kumar

Total Post:210

Posted on    May-03-2016 1:31 AM

if you have a component which has a store but it is not bounding using the store property, then there is posibilities of syntax errors in your code, or If you are working on basic Extjs components for example: grid or combos, you can try this:
view.query ( "[store]").map ( function ( mycomponent ) {
   return mycomponent.getStore()

Don't want to miss updates? Please click the below button!

Follow MindStick