Reputation: 13238
How can i use same store(with different filters) for multiple grids having same column structure?
I have used store.filter() method and passed the filtered store to the grid but since only the reference of filtered store is getting passed, all grids are showing same data.
Tried Ext.clone() with no luck
Upvotes: 2
Views: 4855
Reputation: 987
This is one of the problems that the framework really haven't solved in ExtJs 4.x But they have specific support for it in ExtJs 5. If possible you may want to consider upgrading.
If not, you could request the data from the server by ajax, and then use json result to fill data to all the stores. Using this method you can will several stores, with the same data, with only a single server request.
Upvotes: 2