DataTable ColumnDefs target is invoking for PDF/Excel creation

DataTable ColumnDefs target is invoking for PDF/Excel creation

macchhamacchha Posts: 4Questions: 2Answers: 0
edited January 2018 in Free community support

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

Answers

  • allanallan Posts: 63,204Questions: 1Answers: 10,415 Site admin
    Answer ✓

    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 an if condition and orthogonal data in it if you want to use different data for the export. See this example for that.

    Allan

  • macchhamacchha Posts: 4Questions: 2Answers: 0

    Thanks Allan for the quick support.
    Let me check that.

  • MikmiksaiMikmiksai Posts: 1Questions: 0Answers: 0
    edited March 2020

    ..

This discussion has been closed.