smartgwt pro 2015-12-11
The following behavior occurs on Firefox, Internet Explorer and Chrome, but works on Safari from what we've seen:
If our grouped listgrid has too many rows (starts at around 85-90, 8 groups), calling showPrintPreview only displays an empty screen!
this is our handler method:
I tried removing the "openAll" and it then showed some data. Then i went in and manually expanded all nodes in the browser, and it had the same result, i.e. the print preview was blank.
This is the same code we've had for years and we're pretty sure it used to work. Looks like a bug to us.
The following behavior occurs on Firefox, Internet Explorer and Chrome, but works on Safari from what we've seen:
If our grouped listgrid has too many rows (starts at around 85-90, 8 groups), calling showPrintPreview only displays an empty screen!
this is our handler method:
Code:
@Override public void print() { if ([I]checkTreeGridHasData[/I](reportGrid)) { try { reportGrid.getGroupTree().openAll(); if (headerAssembler != null) { Canvas.[I]showPrintPreview[/I](new Canvas[]{headerAssembler.assemblePrintHeader(), reportGrid}); } else { Canvas.[I]showPrintPreview[/I](reportGrid); } } catch (Exception e) { NubaCommonConstants.[I]handleGenericError[/I](e.getMessage()); } } else { SC.[I]say[/I](NubaCommonConstants.[I]constants[/I].reportWarningNoData()); } }
This is the same code we've had for years and we're pretty sure it used to work. Looks like a bug to us.
Comment