DataTable ColumnDefs target is invoking for PDF/Excel creation
DataTable ColumnDefs target is invoking for PDF/Excel creation

Here is the Ref:
https://jsfiddle.net/madhukarhebbar/dv83vr58/
I have 10+ columns targets where date conversion will happen for some of the rows during load.
How can I prevent the same during PDF or excel export?
I.e Column Target should not get called for Export.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
You don't - it is intentional that the
columns.render
function be called on export since the export might format the data in a specific way. The renderer is just a regular function, so you can easily use anif
condition and orthogonal data in it if you want to use different data for the export. See this example for that.Allan
Thanks Allan for the quick support.
Let me check that.
..