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

Export to PDF only checked row

3 Answers 242 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Guillermo
Top achievements
Rank 1
Guillermo asked on 28 Oct 2016, 10:59 AM

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.

3 Answers, 1 is accepted

Sort by
0
Eduardo Serra
Telerik team
answered on 28 Oct 2016, 07:08 PM
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.
0
Guillermo
Top achievements
Rank 1
answered on 04 Nov 2016, 01:46 PM

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.

0
Pavlina
Telerik team
answered on 09 Nov 2016, 04:51 PM
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.
Tags
Grid
Asked by
Guillermo
Top achievements
Rank 1
Answers by
Eduardo Serra
Telerik team
Guillermo
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or