New to Telerik UI for ASP.NET MVC? Download free 30-day trial
Export to PDF
Also available for:API REFERENCE
Nowadays, the PDF format is very popular and widely used to present documents in a manner independent of application software, hardware and operating systems. This demo demonstrates how to export the Telerik MVC Grid contents to PDF.
The approach is very straight-forward - to export the grid content to PDF include the corresponding command to the grid toolbar .ToolBar(tools => tools.Pdf()) and configure the PDF export setting. For instance, you can specify the file name and whether to export all pages, margins, paper size, font, etc. To initiate export programmatically, you can call the saveAsPdf method from the client-side API.
Additionally, you can customize the appearance of the exported grid table by attaching to the pdfExport event. Visit the following help article to learn exactly how to do that.
The demo also demonstrates how a Grid column can be excluded from exporting via the Exportable setting.