tags:

views:

28

answers:

1

I was created the grid in GWT and set the attribute colspan for one row...

gridSample.setWidget(0, 0, new HTML("Can you improve this checklist?  Please rank and submit your comments below"));

gridSample.getCellFormatter().getElement(0, 0).setAttribute("colspan", "4");

The colspan does not work for IE...

A: 

I'm assuming your using the Grid class. This class is not intended to be used with flexible column and rows, thus setting colspan is not supported. If you want to set colspan, use the class FlexTable. It does support colspan. In your case when using FlexTable it looks:

gridSanple.getFlexCellFormatter().setColSpan(0, 0, 4);

However, note that FlexTable is much slower then Grid. So if you have a large table this might be an issue.

Hilbrand