mnabeelkhan / tableexport-for-vaadin

Automatically exported from code.google.com/p/tableexport-for-vaadin
0 stars 0 forks source link

override text in column header of a table in export #21

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
from mahesh r w

RE: Addon: Export Table to Excel
2/21/12 2:51 PM as a reply to Andreas Lüdtke.

2. Is there a way to override text in column header of a table in export? In my 
case, I don't have any text for a column header in table (it' normal column; 
not generated). While exporting this table, can I add text for the empty header 
of the column?

---

my response was:

For #2, one hack-ey workaround might be to set the column headers to what they 
should be for export, right before export, and then set them back afterwards. 
In the sample code, the headers get set with:

table.setColumnHeaders(new String[]{"Name", "Date", "Amount Earned", "Taxes 
Paid",
"Is Manager?", "Collapsed Column Test"});

At some point I may implement a more elegant solution.

Original issue reported on code.google.com by jnas...@gmail.com on 17 Mar 2012 at 9:45