PDA

View Full Version : Grid inside of a Grid



stan229
18 Jun 2009, 10:32 AM
Is it possible to take the RowExpander plugin a step further and on expand attach another grid to the row?

The reason for this is I have a parent object that has a collection inside of it. I want to show every item of that collection.

Any suggestions would be appreciated, thanks

Colin Alworth
18 Jun 2009, 12:37 PM
Try subclassing RowExpander and override expandRow. In addition to calling super.expandRow(row), you should also do something like

newGrid.render(row.getElement());

Its been a while since we had something like this - ended up taking a different tack, since the resulting UI isnt as nice as we thought it would be.

Have you considered a TreeGrid?

stan229
18 Jun 2009, 1:39 PM
hm.. The treegrid idea might just work out!

Thanks for the suggestions