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

kendo-pdf-export How to include all grid data

1 Answer 535 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chaitra
Top achievements
Rank 1
Chaitra asked on 10 Oct 2018, 08:05 AM

Hi ,

I am using kendo-pdf-export module to export grid and additional information like first summary page (Name , date ,etc) and then I am adding grid. Grid is having only 2 columns but the text length in maximum 5000 characters. When I tried exporting to pdf there are below issues I am facing

  • Text is overlapping on footer
  • Column text is not coming completely

How I can remove auto break of grid so that half column it will come first page and 2nd page half column?

Is there any way we can be able to add header on each page with kendo-pdf-export (similar option related to kendo-grid-pdf) ?

I have created stackblitz sample link ( need to resolve footer overlap and it should export all the data) .

Any help will be great , Thanks in Advance

https://stackblitz.com/edit/angular-i8xpv6-6sgepg?file=app/app.component.ts

Thanks

1 Answer, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 12 Oct 2018, 06:44 AM
Hi Chaitra,

As the page breaks cannot occur in between the content of a single TD element, the only available option to achieve the desired behavior would be to utilize the paperSize option and provide a value big enough to accommodate the longest content, e.g.:

https://www.telerik.com/kendo-angular-ui-develop/components/pdfexport/api/PDFExportComponent/#toc-papersize

https://www.telerik.com/kendo-angular-ui-develop/components/grid/api/PDFComponent/#toc-papersize

Updated example:

https://stackblitz.com/edit/angular-i8xpv6-6mvbtq?file=app/app.component.ts // landscape

https://stackblitz.com/edit/angular-i8xpv6-ssqecv?file=app/app.component.ts // portrait

I hope this helps.

Regards,
Dimiter Topalov
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.
Tags
General Discussions
Asked by
Chaitra
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Share this question
or