Multiple cells per row in CellTable (like a Cell Grid)

134 views
Skip to first unread message

Shaun Tarves

unread,
Aug 21, 2012, 9:29:20 AM8/21/12
to google-we...@googlegroups.com
Is there any way to have multiple cells per column in a CellTable? What I would really like is a grid of cells, but it only seems to be one per row.

The closest I can come is a CellList whose cells are display: inline-block.

Any ideas?

Andrea Boscolo

unread,
Aug 21, 2012, 1:05:20 PM8/21/12
to google-we...@googlegroups.com
It's up to you to create a grid of cells. Try to use a CompositeCell http://google-web-toolkit.googlecode.com/svn/javadoc/2.5/com/google/gwt/cell/client/CompositeCell.html

Shaun Tarves

unread,
Aug 21, 2012, 3:27:20 PM8/21/12
to google-we...@googlegroups.com
My understanding is that CompositeCell is still not going to allow me to use multiple Cell data objects per row.

An example is a data provider that is a List<People> and I want my grid to display my collection of People in a 4x4 grid. Is there a way to do that?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/kD2i14CblB8J.

To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Jens

unread,
Aug 21, 2012, 3:53:07 PM8/21/12
to google-we...@googlegroups.com

An example is a data provider that is a List<People> and I want my grid to display my collection of People in a 4x4 grid. Is there a way to do that?

You could create 4 columns of type "Person" and invent a new class that represents your table rows, lets say "PersonGroup". Your table would then display PersonGroups and each PersonGroup contains 4 Persons that you can render in your columns. With 4 PersonGroups containing 4 Persons each you could mimic your 4x4 grid.

But CellTable/DataGrid is really meant for tabluar data and not for design/layout purposes.

-- J.
Reply all
Reply to author
Forward
0 new messages