Print Button with Orthogonal and NULL cells

Print Button with Orthogonal and NULL cells

rodriformigarodriformiga Posts: 38Questions: 8Answers: 0
edited April 2018 in Free community support

Hello

I have a problem with print of a table with null values and the orthogonal data is set.
Datatable generate a cell with "null" string.

The example is here.
https://jsfiddle.net/u78genkx/

PS: I use the orthogonal to set render for another columns in my table!

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,146Questions: 1Answers: 2,586

    Hi @rodriformiga ,

    The easiest way to fix is to use a render function on the export, something like this: https://jsfiddle.net/j35npmw4/8/

    Hope that suits,

    Cheers,

    Colin

  • rodriformigarodriformiga Posts: 38Questions: 8Answers: 0

    @colin

    I can do it, but it's a problem for me, because I create a template for datatable to use in all the system.
    And I don't want apply the render in all the columns.
    PS: I dont know if the columns have or not null values.

    I see the source, and in type "display" and null values, the datatable return "". I think in Print button should do the same.
    PS: the other export buttons works perfectly.

  • allanallan Posts: 61,734Questions: 1Answers: 10,110 Site admin
    Answer ✓

    That seems reasonable to me - thanks for the suggestion. I've committed a fix and it will be in the nightly shortly.

    Allan

  • rodriformigarodriformiga Posts: 38Questions: 8Answers: 0

    @allan

    Thanks again :)

This discussion has been closed.