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
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
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"
}
]
}
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.
{
"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"
}
]
}
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:
Regards,
Kiril Nikolov
Telerik
We are using version v2015.3.1125
you'r DOJO example using 2015.3.1111
is there any issue with version?
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
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