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

Hidden ListGridField used for grouping is not exported

$
0
0
Hi Isomorphic,

I have a dense ListGrid showing all needed columns without scrolling.

The ListGrid and the relevant ListGridField are configured as follows:

Code:

lg.setGroupByMaxRecords(200);
lg.setGroupStartOpen(GroupStartOpen.ALL);
lg.setCanGroupBy(false);

ListGridFieldLeadstatus statusNameLGFHidden = new ListGridFieldLeadstatus("STATUS_SHORTNAME");
statusNameLGFHidden.setHidden(true);
statusNameLGFHidden.setCanHide(false);
statusNameLGFHidden.setCanExport(true);

lg.setGroupByField("STATUS_SHORTNAME");
lg.setFields(statusNameLGFHidden, ...);
lg.setSort(new SortSpecifier[] { new SortSpecifier("STATUS_SHORTNAME", SortDirection.ASCENDING), ...});
lg.fetchData();

ListGridFieldLeadstatus subclasses ListGridField and uses setGroupTitleRenderer(). That way I group my entries and have the relevant information in the grouping-row, not squandering valuable horizontal space.
When I try to export the ListGrid using
Code:

DSRequest requestProperties = new DSRequest() {
        {
                setExportAs(ExportFormat.OOXML);
                setExportFilename(exportFileName);
        }
};
lg.exportClientData(requestProperties);

all displayed columns are exported, but not the hidden grouping column.
I don't know if this is a bug. I'd say so, because the column information is displayed, but not as column. If one does not want the data exported, he could still set setCanExport(false).

If it is a bug, it would be great if you could fix it in 4.1p (I'm using v9.1p_2014-11-05).

Best regards,
Blama

Viewing all articles
Browse latest Browse all 4756

Trending Articles