Export to PDF only checked row

4 posts, 0 answers
  1. Guillermo
    Guillermo avatar
    3 posts
    Member since:
    Sep 2014

    Posted 28 Oct Link to this post

    How can i export to PDF only the rows that has a column check?.

    I found this example in Export to Excell http://docs.telerik.com/kendo-ui/controls/data-management/grid/how-to/excel/export-checked-columns-only

    Is possible to do this with PDF Export? If anyone has an example of how to do this, I will appreciate it.

  2. Eduardo Serra
    Admin
    Eduardo Serra avatar
    51 posts

    Posted 28 Oct Link to this post

    Hello Guillermo,

    Fortunately, it is possible to export only selected rows from a Kendo UI Grid to PDF. To learn more about how to approach this requirement, I encourage you to take a look at previous forum thread that discusses the same scenario; you can find the thread here.

    I hope this helps!

    Regards,
    Eduardo Serra
    Telerik by Progress
    Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Guillermo
    Guillermo avatar
    3 posts
    Member since:
    Sep 2014

    Posted 04 Nov in reply to Eduardo Serra Link to this post

    Thanks for the reply!

    And one more thing.

    You can give me any idea of how can i implement in the controller the selected row to export in the PDF.

    The .ProxyURL(Url.Action("Pdf_Export_Save", "Home") has to do anything with this?. Because when i try to debug this method action,it never gets in.

    I hope you can help with this problem that i have.

  5. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 09 Nov Link to this post

    Hello,

    I am afraid that the requested functionality cannot be achieved easily, as the PDF relays on the draw DOM API, so you will need to construct the DOM containing only the selected rows and then extract that newly created DOM.

    However, in case you want to export the checked rows from the current page only you can attach to the pdfExport event, hide unchecked items with css and export only the selected one. A sample dojo example that demonstrates this approach is linked below:
    http://dojo.telerik.com/aQupU

    Regards,
    Pavlina
    Telerik by Progress
    Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
Back to Top
UI for ASP.NET MVC is VS 2017 Ready