Complex header export to CSV
Complex header export to CSV
juli tio
Posts: 1Questions: 1Answers: 0
Hi Allan,
I try to export datables with complex header (that have colspan and rowspan in the table's header) like the one in this link:
https://datatables.net/examples/basic_init/complex_header.html
but only manage to see one header in the CSV (which is the 2nd line), is there any way to export all the headers to CSV?
Thanks,
Julia
This discussion has been closed.
Answers
Hi,
I'm afraid that complex header are not supported in the CSV output at this time. If you search the forum you'll find a number of other threads also on this topic stating the same thing.
Allan
Then What to do ???
We need to export complex headers
I'm afraid it isn't something that DataTables' export features support. I'd be happy to take a pull request if you want to add that.
Allan
Hi Allan,
I am also expecting same kind of export from complex header. Could you please let us know how to export the complex header? If this feature is not yet available, let us know the workaround for it.
Thanks
Jaiganesh
As stated above there is no option to export complex headers at this time. There is no workaround to magically enable it. It will take a significant amount of development work to properly add that feature and I don't have a time scale for that yet.
Allan