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

Gantt issue related to export to pdf

1 Answer 175 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
Mariam
Top achievements
Rank 1
Iron
Iron
Veteran
Mariam asked on 30 Jul 2020, 12:13 PM
I have a problem related to export to pdf in Gantt. When Gantt left side is expanded, and I export to pdf, everything is ok, and all columns are present in exported pdf (see expandedDip.png and expandedDipPdf.png). But when i collapsed it, some columns are not visible in exported pdf (see collapsedDip.png, collapsedDipPdf1.png  and collapsedDipPdf2.png). How can I solve this problem?  Can I apply scroll for example, or another solution for this?

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 31 Jul 2020, 04:01 PM

Hi Mariam,

The Gantt PDF Export does not expand its TreeList columns to be totally visible in the PDF output. Thus, they are exported as wide as they are in the Gantt at the time of exporting and any hidden columns are not exported by default.

To expand the columns in the exported PDF, we should remove the width of the treelist element when exporting and then restore it. There are two options to do this:

- Use inbuilt PDF Export option and handle Gantt's pdfExport event - Dojo snippet - in this case there is a small visible flickering while the columns expand and then collapse again.

- Export to PDF via kendo.drawing.drawDOM - Dojo snippet - no flickering.

Regards,
Dimitar
Progress Telerik

Tags
Gantt
Asked by
Mariam
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Dimitar
Telerik team
Share this question
or