views:

9

answers:

0

Here is what I would like to achieve:

have an Ext.grid.GridPanel show data from multiple stores. Put in "DB terms", basically showing what would be a "view" of the content of more than one store. The benefit of this approach, as opposed to using cell-renderers, is that all columns would be sortable and searchable.

For this to work an object like a Ext.data.StoreView would have to be defined and configured to retrieve, and eventually transform, data from all the involved stores and present it to a GridPanel like if it was a single store.

Note that this might come in handy even if the viewed store is just one. As an example consider a store with two numeric fields and a grid that shows both fields in their respective columns and a third column showing the sum of those two fields. You can easily do that with a cell renderer, but you miss on the opportunity to sort on that field. You can also achieve the same by adding a "sum" field to your store and put the sum there, but this would mean replicating values plus all the hassles of keeping that field value in synch at every update.

Now the question: does anybody know if anything (even barely) similar exists or if I just have to implement it ?

Thanks!