Different type for rows in a CellTable

16 views
Skip to first unread message

Sydney

unread,
Jun 11, 2011, 12:48:55 AM6/11/11
to google-we...@googlegroups.com
I want to display a list of Order in a CellTable along with the detail of each order. In that example I have 2 orders that each has 2 products.

06/10/2011 | Order # 1505 | | | $150.00
Empty | Product 1 | 5 | 10 | $50.00
Empty | Product 2 | 10 | 10 | $100.00
05/10/2011 | Order # 1504 | | | $150.00
Empty | Product 1 | 5 | 10 | $50.00
Empty | Product 2 | 10 | 10 | $100.00

Is there a way to display different type for rows in a CellTable? The CellTable would be a CellTable<OrderProxy>. OrderProxy contains a List<ProductProxy>.

Marcin Biegan

unread,
Jun 11, 2011, 7:09:46 AM6/11/11
to Google Web Toolkit
I'm wondering about the exact same thing. Simple solution: create an
object which contains order or product and make a table of these:
CellTable<OrderOrProduct>. But what about paging? I'd like to have
each page start with order details (even if this order already
appeared on previous page).
And also I would like to show 5 products per page, not 5 "products or
orders".

Its easy to calculate number of all products or number of all
'products or orders', but if the order can appear multiple times on
subsequent pages I don't really know how many pages there will be as
this depends on how many rows per page I display and how many products
each order has.

How to approach this?
Reply all
Reply to author
Forward
0 new messages