Null value in exported PDF grids

4 posts, 0 answers
  1. Creationator
    Creationator avatar
    7 posts
    Member since:
    Nov 2015

    Posted 08 Aug Link to this post

    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?!?!
  2. Alex Hajigeorgieva
    Admin
    Alex Hajigeorgieva avatar
    115 posts

    Posted 11 Aug Link to this post

    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.
  3. Kendo UI is VS 2017 Ready
  4. Creationator
    Creationator avatar
    7 posts
    Member since:
    Nov 2015

    Posted 11 Aug in reply to Alex Hajigeorgieva Link to this post

    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.
  5. Alex Hajigeorgieva
    Admin
    Alex Hajigeorgieva avatar
    115 posts

    Posted 12 Aug Link to this post

    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. 
Back to Top
Kendo UI is VS 2017 Ready