Populate dataview.List from Two filters from Two different stores
I have two stores.
- One is handling a JSON file, stored locally (ajax proxy)
- Second is reading data from Local Storage
Above both stores have individual filters attached (myStore.filter()). It's easy to populate the dateaview.list as per the filtered results from one store but I can't find a way to use two different stores with two different filters and display the output of them both filters into the dataview.list at the same time.
E.g, if first filter outputs values 'Jon','Duncan','David' and second filter outputs value 'Mike','Steve' then I want them all values from both filters to be populated in the dataview.list.
I think I will need filterBy to achieve this but even if this is the right approach, can someone please guide me with some sample code.