Export and Print for RowGroup Extension
Export and Print for RowGroup Extension

I have taken note of the option of using the source code found at https://datatables.net/forums/discussion/42916/row-grouping-with-printing#latest. However, I'm hoping there is another simpler way to have the printing and exporting features of the Button extension able to print and export row grouping.
See below screenshot of RowGroup working on screen
See below screenshot of same datatable when Print is chosen
This question has an accepted answers - jump to answer
Answers
Sorry no. The RowGroup extension doesn't play nicely with the export options at the moment (see the compatibility chart). That is something I hope to address in future.
Nice styling on the row grouping btw!
Allan
Thanks.
I'm just going to make a print.css to print this much needed categorization.
Good work on the progress you have made on DataTables.
Do you have news to print with group?
Nope, there's been no progress. It's in the backlog but isn't a priority right now, I'm afraid.
I couldn't get the code listed at https://datatables.net/forums/discussion/42916/row-grouping-with-printing to work properly, but with a little tweaking do have a working solution for exporting datatables with row grouping.
As in that thread:
Usage:
Define grouped_array_index in exportOptions
New logic in _exportData in datatable-buttons.js:
For completeness, the entire function _exportData in datatable-buttons.js can be replaced with:
Nice, thanks for sharing.
Colin
bubomuke, you rock! Your code works great on my solution.
Just one thing, I'm trying to make the grouped header indent. I tried using the customize setting on the button, but it doesn't seem to take. Any suggestions?