PDA

View Full Version : Problem with loading data from one grid into another grid



wburke
31 Oct 2011, 7:16 AM
I'm having a problem loading data from one grid into another grid?

Calling getSelectionModel on a grid and getting selected from this returns a MixedCollection.
I need to load the MixedCollection into another grid.

When I pass this MixedCollection into a model and use this model in a store for a grid, the grid shows the correct number of rows but the values are empty.

What is the proper way to accomplish loading data from one grid into another grid?

Thank you

wburke
31 Oct 2011, 7:59 AM
A colleague answered this for me. I used items on the MixedCollection and it gave the correct array of models to pass into the loadData() method on the Store. Works fine.