PDF/Excel export not working with child rows
PDF/Excel export not working with child rows
Test case: I have datatable that groups data as suggested in https://stackoverflow.com/a/63514383 and displays parent - child rows as expected. Now my datatable looks exactly like https://datatables.net/examples/api/row_details.html.
Exporting the above parent-child row to PDF / Excel using datatable button is only exporting parent row.
Description of problem: Exporting the above parent-child row to PDF / Excel using datatable button is only exporting parent row.
Will it be possible to export this child rows using the export pdf/excel functionality of the data table?
Thank you in advance.
Answers
That's not support out the box, as DataTables has no control of what goes into those child rows, they're entirely defined by the developer.
That said, there are a few threads which offer workarounds - such as here, here and here,
Colin
Thank you Colin for your response
Had tried approaches from here and here but value in childRow is showing as "Undefined"
We will need a running test case showing the problem so we can help debug what is undefined.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin