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

Better (configurable) PDF output on the Scheduler

3 Answers 276 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Tiho
Top achievements
Rank 1
Tiho asked on 22 Aug 2016, 05:21 PM

Would it be possible to configure how the exported PDF on the Scheduler same as on Grid?

Example: http://dojo.telerik.com/ufOpa  -> click on "Export to PDF".

The PDF is configure as:

toolbar: ["pdf"],
pdf: {
   allPages: true,
   avoidLinks: true,
   paperSize: "Letter",
   margin: { top: "2cm", left: "1cm", right: "1cm", bottom: "1cm" },
   landscape: false,
   repeatHeaders: true,
   template: $("#page-template").html(),
   scale: 0.8
},

 

...which is amazing! That PDFis everything one could wish for.

 

Now, on the Scheduler, if we were to try and "Export to PDF" the data here: http://dojo.telerik.com/IWeCe

...the result would not be a multi-paged, letter-sized PDF, but a single-page PDF containing a cropped section of the Scheduler.

 

I put together a quick POC using the kendo.drawing.drawDOM method, which yielded some results (letter-format, multi page PDF), but it's far from usable.
http://dojo.telerik.com/IWeCe/2  -> Click "PDF me!" on the top of the screen.

 

My question is, can we expect - and if yes, in what timeline - to be able to configure the PDF output on the Scheduler the way we can do it on the Grid?

Thank you in advance!

3 Answers, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 24 Aug 2016, 08:26 AM
Hi Tiho,

Please note that the only option from the PDF configuration that might not work as you expect is the paper size. The reason behind this is that the Scheduler content cannot be easily split as it's inside scrollable container with several tables. Splitting tables inside scrollable containers will not be supported out of the box by the Kendo UI PDF export soon - that why the only possible approach would be using custom solution. 

Possible approach is to directly use the KendoUI PdfExport feature and follow the help topic below about how to split the content on multiple pages:
Here is small example based on the above documentation:


Regards,
Vladimir Iliev
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
Tiho
Top achievements
Rank 1
answered on 29 Aug 2016, 06:37 PM

Oh, that's unfortunate.

Just to clarify, you said "Splitting [several] tables inside scrollable containers" - what if it's a single table inside a non-scrollable container? Like .k-scheduler-layout.k-scheduler-monthview, a simple month view.

0
Vladimir Iliev
Telerik team
answered on 31 Aug 2016, 07:08 AM
Hi Tiho,

Basically it's possible to make the month view split on different pages, however this feature currently is not supported as it's never requested. You can share your idea at Kendo UI UserVoice to allow other users vote for it. Most voted ideas are included in next Kendo UI releases. 

Regards,
Vladimir Iliev
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Scheduler
Asked by
Tiho
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Tiho
Top achievements
Rank 1
Share this question
or