Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

PDFExport of grid with ValueIcons - ValueIcons missing

$
0
0
I'm attempting to export a TreeGrid with valueIcons to PDF and I'm not getting the ValueIcons to show up in the output PDF. I've put together a fairly simple test case useing RPCManager.exportContent() that demonstrates the issue.
Code:

                VLayout layout = new VLayout();
                layout.setHeight(300);
                layout.setWidth(1200);

                final ListGrid grid = new TreeGrid() {
                        {
                        }

                        @Override
                        public String getValueIcon(ListGridField field, Object value, ListGridRecord record) {
                                String icon = null;
                                if (field.getName().equals("status")) {
                                        if (value != null) {
                                                if (value.equals("Endangered") || value.equals("Threatened")) {
                                                        icon = "[SKINIMG]/actions/exclamation.png";
                                                } else {
                                                        icon = "[SKINIMG]/actions/approve.png";
                                                }
                                        }
                                }
                                return icon; // TODO Auto-generated method stub
                        }
                };

                grid.setDataSource(DataSource.get("animals"));

                grid.setAutoFetchData(true);
                grid.setUseAllDataSourceFields(true);
                IButton button = new IButton("export");
                button.addClickHandler(new ClickHandler() {

                        @Override
                        public void onClick(ClickEvent event) {
                                RPCManager.exportContent(grid);
                        }
                });

                layout.setMembers(grid, button);
                layout.draw();

I don't think it's a setup issue since I'm getting the Tree open/close and folder icons and I don't see any errors/warnings in the console output of note. Any suggestions? or is this a potential bug/issue in SmartGWT? I'm using the 01/05 nightly build of SmartGWT 4.1d.

Viewing all articles
Browse latest Browse all 4756

Trending Articles