EXTJS - GETTING ALL STORES OF A VIEW.

monica frank

Total Post:10

Points:70
Posted by  monica frank
 706  View(s)
Ratings:
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.

  1. Tarun Kumar

    Post:214

    Points:1642
    Re: Extjs - getting all stores of a view.

    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()
    });

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!