PDA

View Full Version : [CLOSED] Aggregation row causes JS error in IE8 when using an AutoExpand Column



alecbritton
23 Aug 2010, 3:27 PM
This test case works fine on Chrome but causes a JS error in IE 8. If I change the first column to have a fixed width it works fine in either browser.



public class TestCase implements EntryPoint {

public void onModuleLoad() {

GXT.setDefaultTheme(Theme.BLUE, true);

Viewport viewport = new Viewport();
viewport.setLayout(new FitLayout());

ContentPanel cp = new ContentPanel();
cp.setLayout(new FitLayout());

List<ColumnConfig> ccs = new ArrayList<ColumnConfig>();

ColumnConfig cc = new ColumnConfig();
cc.setId("COL1");
cc.setHeader("Column 1");
ccs.add(cc);

cc = new ColumnConfig();
cc.setId("COL2");
cc.setHeader("Column 2");
cc.setWidth(300);
ccs.add(cc);

ColumnModel cm = new ColumnModel(ccs);
cm.addAggregationRow(new AggregationRowConfig<ModelData>());

Grid<ModelData> grid = new Grid<ModelData>(new ListStore<ModelData>(),cm);
grid.setAutoExpandColumn("COL2");


cp.add(grid);

viewport.add(cp);

RootPanel.get().add(viewport);
}

}

sven
24 Aug 2010, 2:28 AM
You have to define a width to the first column. The autoExpand column than takes the rest of the space than.