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

Grid Export to PDF formatting

1 Answer 459 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Josselin
Top achievements
Rank 1
Iron
Josselin asked on 04 Dec 2018, 08:47 AM

Hello,

In my project, we have to provide pdf export for all of our grids. When they are small, there is no real problems. But when we have like 10 or more columns and multiple pages, it seems we can't extract all the columns and the export will only show like 6 columns and only the first page...

Is there another way to display all columns without changing scaling (making text unreadable) or the format size ? (We don't want to print in A0 either...)

 

Thanks in advance !

1 Answer, 1 is accepted

Sort by
0
Alex Hajigeorgieva
Telerik team
answered on 06 Dec 2018, 07:48 AM
Hello, Josselin,

The Kendo UI Grid PDF export uses a page breaking algorithm as if it were a text document (top to bottom) and any content that does not fit horizontally gets truncated.

There are a couple of alternatives:

1) Change the columns widths for the export only with CSS

https://docs.telerik.com/kendo-ui/knowledge-base/grid-pdf-export-change-column-widths

2) Use the PDF export spreadsheet algorithm which works side to side  

https://docs.telerik.com/kendo-ui/framework/drawing/pdf-tabular-data

Let me know in case you have questions regarding either approach.

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.
Tags
Grid
Asked by
Josselin
Top achievements
Rank 1
Iron
Answers by
Alex Hajigeorgieva
Telerik team
Share this question
or