PDA

View Full Version : How to create a grig of Obect of Obect that extends BaseModelData



msimone
3 Jan 2011, 9:42 AM
Hi all,

I'd like to create a basic grid with 2 field that are 2 different BaseModelData Objects.
I fill in the elements in the store and I can see them while debugging (whatch function in Eclipse) but I'm not able to show them in the grid.

How should I write into the column model for the items to show?

for example
column.setId("name");

in my case name should be an object, so what I expect is something like:

column.setId(myobject.get("name"));

thanks

mama
19 Jan 2012, 5:49 AM
msimone..Did you get any solution on this?
I am also doing same thing...(:|

Ersmarker
20 Jan 2012, 1:02 AM
You can create a GridCellRenderer that returns value you want to display from you object.