Approved
Last Updated: 03 Oct 2019 09:15 by ADMIN
Szabolcs
Created on: 13 Sep 2019 10:47
Category: Grid
Type: Bug Report
1
Grid PDF export bug

Dear Sir / Madam,

At grid PDF export, in case of allPages: false --> Actual rows are rendered to multiple pages properly, but all pages are written on the first page.

It works well, if I set "options.pdf.multiPage" to "true", but it is not in API reference.

A solution might be if this variable is fixed to true in grid prototype "saveAsPDF" function:
          "options.multiPage = true;" instead of "options.multiPage = options.multiPage || options.allPages;"

Please see this example: https://dojo.telerik.com/usUnUziL/2

Step 1: press "Export to PDF" --> Result: wrong pdf

Step 2: press "Set multiPage: true"

Step 3: press "Export to PDF" --> Result: good pdf

 

Best Regards,

Szabolcs Tóth

2 comments
ADMIN
Alex Hajigeorgieva
Posted on: 03 Oct 2019 09:15

Hello, Szabolcs,

I can confirm that the reported behaviour is an issue and I have logged it in our public repository. I have also converted this item into a public one and it is available here:

https://feedback.telerik.com/kendo-jquery-ui/1429533-grid-pdf-export-bug

I added an additional vote to the bug report on your behalf in order to increase its priority. You will receive email notifications about future status changes.

Finally, as a small token of appreciation, I have updated your Telerik points

Regards,
Alex Hajigeorgieva
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
ADMIN
Alex Hajigeorgieva
Posted on: 16 Sep 2019 12:53
Hello, Szabolcs,

Please accept my apology for the delayed response and thank you very much for the runnable example to illustrate the case that you are experiencing and for sharing the workaround you have found as well.

You can add it to the grid pdf options and it will work like that as well:

pdf: {
    multiPage:true,
    avoidLinks: true,
    paperSize: "A4",
    margin: { top: "2cm", left: "1cm", right: "1cm", bottom: "1cm" },
    landscape: true,
    repeatHeaders: true,
    template: $("#page-template").html(),
    scale: 0.8
 },

I will need some more time to verify if the proposed change in the source code is a feasible option and will get back to you when I know more as soon as possible.

Kind Regards,
Alex Hajigeorgieva
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.