Export to PDF for gantt timeline and contents separately

2 posts, 0 answers
  1. Ramana Meda
    Ramana Meda avatar
    7 posts
    Member since:
    May 2018

    Posted 05 Sep 2018 Link to this post

    Hi, Is there any possibility to export to PDF for gantt timeline view and contents view separately? Reply asap.
  2. Nencho
    Admin
    Nencho avatar
    1823 posts

    Posted 07 Sep 2018 Link to this post

    Hello Ramada,

    You can export only the timeline, by using the kendo drawing and passing the .k-timeline element to the drawDom method:

    $("#button1").click(function(e){ 
         var drawing = kendo.drawing;   
          drawing.drawDOM(".k-timeline").then(function (group) {
          group.options.set("pdf");
          drawing.pdf.saveAs(group, "filename.pdf");
      });

    Please refer to the following dojo, where the above example is implemented:

    https://dojo.telerik.com/@nenchef/EZIfuFIp/2

    Regards,
    Nencho
    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.
Back to Top