Re: Different type for rows in a CellTable
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?
On Jun 11, 6:48 am, Sydney <sydney.henr...@gmail.com> wrote:
> 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>.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home