This is a migrated thread and some comments may be shown as answers.

Null value in exported PDF grids

3 Answers 225 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Creationator
Top achievements
Rank 1
Creationator asked on 08 Aug 2016, 07:25 PM
Hey, does anyone know how to solve this problem I am having (See image below). The issues are:
1. In the red-highlighted section, when I click export to pdf everything shows correctly. However if I export to excel I get blank fields (again see image below). Why is this?!?!?!

2. In the orange-highlighted section, the field is suppose to be empty, so the excel is actually displaying the grid correctly. But the PDF is displaying the value "null". Why is that?!?!

3 Answers, 1 is accepted

Sort by
0
Alex Hajigeorgieva
Telerik team
answered on 11 Aug 2016, 07:33 AM
Hi Derrick,

I have tested both the Kendo UI Grid Excel and PDF Export and was not able to reproduce the null values getting exported. The cells remain blank which is the expected behaviour since Q2 2012 SP1 release (2012.2.913).

For your convenience, a simple runnable Dojo code snippet is available at:

http://dojo.telerik.com/iPEfE

Let me know if there is any additional information that could be related to the described behaviour so I can assist further.

Regards,
Alex
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
0
Creationator
Top achievements
Rank 1
answered on 11 Aug 2016, 06:19 PM
Yes, but you aren't trying to print 100+ records. If you tried printing more than just a couple of records you may reproduce that issue. If you have some another example with 500+ records, i believe you will recreate the issue.
0
Alex Hajigeorgieva
Telerik team
answered on 12 Aug 2016, 01:45 PM
Hi Derrick,

I have tested my original demo with 500 results and the cells remain blank as before.

The demo is available at: 

http://dojo.telerik.com/EboGi

The only reason why this may be happening in your scenario, that I can think of is if the value of the cell is the string "null" as opposed to the value of null. In this case, however, it would be visible in the Kendo UI Grid before exporting which does not seem to be the case. 

If you can modify the snippet in a way that it represents your scenario more accurately and exhibits the undesirable behaviour, I would be able to investigate further.

Kind Regards,
Alex
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps. 
Tags
Grid
Asked by
Creationator
Top achievements
Rank 1
Answers by
Alex Hajigeorgieva
Telerik team
Creationator
Top achievements
Rank 1
Share this question
or