Better (configurable) PDF output on the Scheduler

4 posts, 0 answers
  1. Tiho
    Tiho avatar
    5 posts
    Member since:
    Apr 2013

    Posted 22 Aug Link to this post

    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!

  2. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 24 Aug Link to this post

    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.
     
  3. Kendo UI is VS 2017 Ready
  4. Tiho
    Tiho avatar
    5 posts
    Member since:
    Apr 2013

    Posted 29 Aug in reply to Vladimir Iliev Link to this post

    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.

  5. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 31 Aug Link to this post

    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.
     
Back to Top
Kendo UI is VS 2017 Ready