Hi Isomorphic,
I'm using SmartClient Version: SNAPSHOT_v10.1d_2015-10-20/Pro Deployment (built 2015-10-20) and Firefox 24.8.1 ESR.
I implemented a list grid with expanding rows similar to the following Showcase sample:
http://www.smartclient.com/smartgwt/...id_nested_grid
I added a print preview button, however, if any rows are expanded the print preview is blank. It works fine if all the rows are collapsed but then you don't see any nested grids.
This is working with SmartClient Version: v10.0p_2015-06-11/Pro Deployment (built 2015-06-11). I also tried the current build (10/19) of 5.0p and it no longer works.
Thanks in advance.
I'm using SmartClient Version: SNAPSHOT_v10.1d_2015-10-20/Pro Deployment (built 2015-10-20) and Firefox 24.8.1 ESR.
I implemented a list grid with expanding rows similar to the following Showcase sample:
http://www.smartclient.com/smartgwt/...id_nested_grid
I added a print preview button, however, if any rows are expanded the print preview is blank. It works fine if all the rows are collapsed but then you don't see any nested grids.
This is working with SmartClient Version: v10.0p_2015-06-11/Pro Deployment (built 2015-06-11). I also tried the current build (10/19) of 5.0p and it no longer works.
Code:
public void onModuleLoad() { DataSource dataSource = SupplyCategoryXmlDS.getInstance(); ListGrid listGrid = new ListGrid() { @Override public DataSource getRelatedDataSource(ListGridRecord record) { return ItemSupplyXmlDS.getInstance(); } @Override protected Canvas getExpansionComponent(final ListGridRecord record) { VLayout layout = new VLayout(5); layout.setPadding(5); final ListGrid countryGrid = new ListGrid(); countryGrid.setHeight(224); countryGrid.setCellHeight(22); countryGrid.setDataSource(getRelatedDataSource(record)); countryGrid.fetchRelatedData(record, SupplyCategoryXmlDS.getInstance()); countryGrid.setCanEdit(false); layout.addMember(countryGrid); return layout; } }; listGrid.setWidth100(); listGrid.setHeight(500); listGrid.setCanExpandRecords(true); listGrid.setAutoFetchData(true); listGrid.setDataSource(dataSource); final VLayout printContainer = new VLayout(10); printContainer.setWidth100(); IButton printPreviewButton = new IButton("Print Preview"); printPreviewButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { Canvas.showPrintPreview(printContainer); // Canvas.printComponents(new Object[] { printContainer }); } }); printContainer.addMember(listGrid); printContainer.addMember(printPreviewButton); printContainer.draw(); }
Comment