I need to add rows to the table and dynamically change the headers based on
which rows are being grouped. For example, if I had a table of books and
grouped by Authors, I would want to add a row with colspan set to the entire
table columand remove the Authors column from the grid. Removing the column
is sorta easy, I still need to be sorting on that column, but adding the
additional row is part that I haven't figured out (without copy/pasting
CellTable and maiming it to my own specifications).
2011/4/6 Raphaël Brugier
> By grouping you mean set a rowspan ?
>
> You can set the rowspan of cell using the cellTable api :
>
> public void setRowSpan(final int row, final int column, final int
> rowSpan) {
>
> cellTable.getRowElement(row).getCells().getItem(column).setRowSpan(rowSpan);
> }
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
--
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+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.