View Full Version : Store object find components bound to it

14 Jan 2011, 3:24 PM
Is there any way for a store object to find the components which are bound to it?

We have a number of combo boxes bound to JsonStore-s (sometimes 2-3 combos in different locations bind to same store). These display the loaded form value (a numeric ID) because the form is loaded before the underlaying store loads (id/name pairs, the name being what should be shown).

The solution we found for this is to add a load event to the store of each combo which re-selects its combo's value, causing it to show the name not the ID of the loaded form value. I'd like to cut down on the amount of such hardcoded listeners by extending JsonStore into a JsonStore that will automatically 'refresh' the selected value of any/all combos bound to it whenever it loads.

14 Jan 2011, 3:57 PM
I doubt it, as the whole design is for stores to be independent of the objects that use them.