How to show full content of a datatable cell while print

content of my datatable cell are hidden to due to specific width . But during print i want to show all the cell content. how do i do that.

When a datatable is first rendered, fixedRowHeight: true (a value by default) adds “white-space: normal” style to the datatable cells. It provides text wrapping. However, in order for adjustRowHeight to work, you need to set fixedRowHeight to false. But, in the example, after defining fixedRowHeight to false, the styles change to white-space: nowrap and therefore the text does not wrap. So to make it all work, you could add this style on click to show full content of the cells when printing.

Please, check the example: Code Snippet