Hello,
I am using smartgwt 2.4 and firefox 3.6.
The application draws a grid of records which rows can be expanded to show another grid of entries that have been matched to the clicked record.
both table are using the same DataSource.
productsTable = new ListGrid() {
@Override
protected Canvas getExpansionComponent(final ListGridRecord record) {
VLayout layout = new VLayout(5);
layout.setPadding(2);
final ListGrid matchedProductsGrid = new ListGrid();
matchedProductsGrid.setWidth(500);
matchedProductsGrid.setHeight(224);
matchedProductsGrid.setCellHeight(22);
matchedProductsGrid.setDataFetchMode(FetchMode.BASIC);
matchedProductsGrid.setFields(makeGridFields());
matchedProductsGrid.setDataSource(pds);
matchedProductsGrid.fetchRelatedData(record, pds);
layout.addMember(matchedProductsGrid);
return layout;
}
};
productsTable.setAutoFetchData(true);
productsTable.setCanExpandRecords(true);
productsTable.setDataSource(pds);
productsTable.setDataPageSize(20);
productsTable.setFields(makeGridFields());
productsTable.setDataFetchMode(FetchMode.PAGED);
After expanding one row and scrolling down in the productsTable (outer grid), which means that the productsTable fetches new Data from the Server, the following error is thrown and the newly fetched records are not loaded into the grid (but the data has already arrived the client).
21:27:22.266 [ERROR] [productloader] 21:27:22.056:TMR1:WARN:GridBody:isc_ProductList_2_0_body:row heights not yet available; returning all zeroes
com.smartgwt.client.core.JsObject$SGWT_WARN: 21:27:22.056:TMR1:WARN:GridBody:isc_ProductList_2_0_body:row heights not yet available; returning all zeroes
at sun.reflect.GeneratedConstructorAccessor23.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
at java.lang.Thread.run(Thread.java:636)
After reloading the page, everything is fine again.
What is the source of the error and how can I resolve it?