How to print row childs in datatables with a custom button?
How to print row childs in datatables with a custom button?
Francisco_Paz
Posts: 1Questions: 1Answers: 0
I already create row childs in datatables through an ajax call , But when I want to print it with the buttons API 'print', it´s only export the original data of the table, discarding the row childs.
I'm thinking create a custom button pushing to the original json data the row childs.
This discussion has been closed.
Answers
I would love to know how to do this as well.
I have the same problem, I have a table with original data that when expanding a row shows its details, but I need to print everything, original data and details. Were you able to solve this? Could you show me how to solve this problem ??
I found this:
https://datatables.net/forums/discussion/43133/how-to-print-child-rows#latest
I haven't tried the solution so not sure if it works.
Kevin
Good find Kevin.
At the moment there is no built in way to include the child rows in the exported data. That is something that I hope to investigate in future.
Allan
The suggestion that is the form that is in the example (link) quoted, worked perfectly.
https://datatables.net/forums/discussion/43133/how-to-print-child-rows#latest
Thank you