I have a problem when doing a showPrintPreview() on a TreeGrid.
I have defined a cell formatter for one of my rows which returns some HTML code to show images depending on certain flags:
This works perfectly well but when I do the showPrintPreview() none of the images appear (broken icon image is shown instead).
What could be the reason for that?
BTW, I use similar cell formatters for images which are loaded via RPC and they are shown just fine in my print view.
Thomas
I'm using GWT 2.0.3 and SmartGWT 2.2
I have defined a cell formatter for one of my rows which returns some HTML code to show images depending on certain flags:
Code:
private CellFormatter imageOnly = new CellFormatter() {
@Override
public String format(Object value, ListGridRecord record, int row, int vCol) {
EditorTreeCell cell = (EditorTreeCell)getCell(record, 1);
StringBuilder result = new StringBuilder();
if (cell.isEditable()) result.append("<img src=\"images/editable.gif\"> ");
if (cell.isMandatory()) result.append("<img src=\"images/mandatory.gif\"> ");
if (cell.mustChange()) result.append("<img src=\"images/mustChange.gif\"> ");
if (cell.mustVisit()) result.append("<img src=\"images/mustVisit.gif\">");
return result.toString();
}
};
What could be the reason for that?
BTW, I use similar cell formatters for images which are loaded via RPC and they are shown just fine in my print view.
Thomas
I'm using GWT 2.0.3 and SmartGWT 2.2
Comment