Export to pdf showing "null"s on the 1st page

10 posts, 0 answers
  1. Ravi
    Ravi avatar
    7 posts
    Member since:
    Sep 2015

    Posted 02 Dec 2015 Link to this post

    Export to pdf showing "null"s on the 1st page and blank space on the subsequent pages.
    My data has numeric values or 'null's. However while export all pages to PDF, the 'null's on the first page are converted to "null" and displaying as such, and on the subsequent pages they are appearing as blank spaces (which is the desired output).
  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2564 posts

    Posted 04 Dec 2015 Link to this post

    Hello Ravi,

     

    I am afraid that the issue is not a known one, nor is reproducible in our online demos, so please extract a runnable sample in a Kendo UI Dojo and we will be happy to help.

     

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Ravi
    Ravi avatar
    7 posts
    Member since:
    Sep 2015

    Posted 04 Dec 2015 in reply to Kiril Nikolov Link to this post

    Hi Kiril Nikolov,

    I am sharing the screen-shots of the pdf which I export.

    We cannot share the a demo with our exact data, but the following are the steps involved-

    1.  Excel file is uploaded (which contains "null" values)

    2. The AngularJS-Kendo Grid fetches data for rows and column headers from a .json file, returned from a web service, this also contains "null" values, which displays as blank spaces on the grid

    3. On export PDF(all pages) the "null"s are printing on the first page, and not on the subsequent pages (please refer screenshots)

    JSON from webservice looks like this-

    {
        "t_data": [

              {    "column1":"value11",

                  "column2":"null"

                  },

               {  "column1":"null", 
                  "column2":"value22"
                  }

         ],

    "t_header": [
               {
                "field": "column1",
                "title": "Column 1",
                "hidden": false,
                "type": "VARCHAR"
            },
            {
                "field": "column2",
                "title": "Column 2",
                "hidden": false,
                "type": "VARCHAR"
            }

        ] 
    }

     

     

     

  5. Ravi
    Ravi avatar
    7 posts
    Member since:
    Sep 2015

    Posted 04 Dec 2015 in reply to Kiril Nikolov Link to this post

    Hello,

    The kendo version we are using - Kendo UI v2015.3.1125
    We are using the same code provided in http://docs.telerik.com/kendo-ui/web/grid/how-to/pdf-export/custom-page-layout for the export page formatting.

    I have attached the 1st and 2nd page of the PDF output.
    And our JSON structure is as described above.

  6. Ravi
    Ravi avatar
    7 posts
    Member since:
    Sep 2015

    Posted 04 Dec 2015 in reply to Kiril Nikolov Link to this post

    JSON from webservice looks like this-
    {
        "t_data": [
              {    "column1":"value11",
                  "column2": null
                  },
               {  "column1": null, 
                  "column2":"value22"
                  }
         ],
    "t_header": [
               {
                "field": "column1",
                "title": "Column 1",
                "hidden": false,
                "type": "VARCHAR"
            },
            {
                "field": "column2",
                "title": "Column 2",
                "hidden": false,
                "type": "VARCHAR"
            }
        ] 
    }
  7. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2564 posts

    Posted 08 Dec 2015 Link to this post

    Hello Ravi,

     

    If you have a null value it will not be shown as null in the Grid as well, unless you have a template. Please check the following example:

     

    http://dojo.telerik.com/uXaDE

     

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  8. Ravi
    Ravi avatar
    7 posts
    Member since:
    Sep 2015

    Posted 08 Dec 2015 in reply to Kiril Nikolov Link to this post

    We are using version v2015.3.1125
    you'r  DOJO example using 2015.3.1111

    is there any issue with version?

  9. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2564 posts

    Posted 10 Dec 2015 Link to this post

    Hello Ravi,

     

    There should not be a change it this functionality between this exact versions. I have just tested it and the behavior is the same.

     

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  10. Creationator
    Creationator avatar
    7 posts
    Member since:
    Nov 2015

    Posted 08 Aug in reply to Kiril Nikolov Link to this post

    I actually dont have a template and I still continue to get the "null" value when I export to PDF. But the weird thing is that its only on the first page of the exported pdf, all subsequent pages DO NOT have the "null" value.
  11. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2564 posts

    Posted 09 Aug Link to this post

    Hi,

    Would it be possible to create a sample where the issue can be reproduced, so we can take a look? You can submit a separate support request with the sample and we will be happy to take a look.

    Regards,
    Kiril Nikolov
    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