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

Force to Export PDF all columns

2 Answers 482 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ismaelc
Top achievements
Rank 1
Ismaelc asked on 13 Dec 2016, 06:15 PM

We made a responsive grid using CSS breakpoints, some columns are hidden in small resolution screens, when i export to PDF the file only shows columns showed in browser as a print screen, there is a way to print all columns???

thanks in advance!

2 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 15 Dec 2016, 10:15 AM

Hello Ismaelc,

You can use the following Grid options to adjust the settings so that the exported PDF better reflects the page layout and export all columns:

http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#configuration-pdf.landscape 
http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#configuration-pdf.paperSize   http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#configuration-pdf.scale

Here you go a demo: http://dojo.telerik.com/Ewiwo

Best regards,

Rumen
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Ismaelc
Top achievements
Rank 1
answered on 15 Dec 2016, 11:24 PM

Hi Rumen, thanks for your help, I used the adjust options in order to have a better document presentation, also I'm showing hidden columns using CSS adding the parent element kendo-pdf-document to my rules and displaying the content with display: table-cell or display: block, this fixed my issue, so I'll mark this thread as asked, 

Thank you

Tags
Grid
Asked by
Ismaelc
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Ismaelc
Top achievements
Rank 1
Share this question
or