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

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

9 Answers 154 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ravi
Top achievements
Rank 1
Ravi asked on 02 Dec 2015, 02:08 PM
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).

9 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 04 Dec 2015, 08:58 AM

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!
 
0
Ravi
Top achievements
Rank 1
answered on 04 Dec 2015, 09:34 AM

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"
        }

    ] 
}

 

 

 

0
Ravi
Top achievements
Rank 1
answered on 04 Dec 2015, 10:29 AM

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.

0
Ravi
Top achievements
Rank 1
answered on 04 Dec 2015, 10:31 AM
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"
        }
    ] 
}
0
Kiril Nikolov
Telerik team
answered on 08 Dec 2015, 08:15 AM

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!
 
0
Ravi
Top achievements
Rank 1
answered on 08 Dec 2015, 02:09 PM

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

is there any issue with version?

0
Kiril Nikolov
Telerik team
answered on 10 Dec 2015, 08:14 AM

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!
 
0
Creationator
Top achievements
Rank 1
answered on 08 Aug 2016, 08:03 PM
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.
0
Kiril Nikolov
Telerik team
answered on 09 Aug 2016, 07:15 AM
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.
 
Tags
Grid
Asked by
Ravi
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Ravi
Top achievements
Rank 1
Creationator
Top achievements
Rank 1
Share this question
or