Print Button with Orthogonal and NULL cells
Print Button with Orthogonal and NULL cells
![rodriformiga](https://secure.gravatar.com/avatar/5f615a65d77319f7177ec263825fc3cd/?default=https%3A%2F%2Fvanillicon.com%2F5f615a65d77319f7177ec263825fc3cd_200.png&rating=g&size=120)
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
This discussion has been closed.
Answers
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
@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.
That seems reasonable to me - thanks for the suggestion. I've committed a fix and it will be in the nightly shortly.
Allan
@allan
Thanks again![:) :)](https://datatables.net/forums/resources/emoji/smile.png)