New to Telerik UI for ASP.NET Core? Download free 30-day trial
ASP.NET Core Grid PDF Export
- EXAMPLE
- VIEW SOURCE
-
Change Theme
defaultDefault Theme
- Main
- Main Dark
- Nordic
- Ocean Blue
- Ocean Blue A11Y
- Purple
- Turquoise
Bootstrap Theme- Main
- Bootstrap 3
- Bootstrap 3 Dark
- Main Dark
- Nordic
- Turquoise
- Turquoise Dark
- Urban
- Vintage
Material Theme- Main
- Arctic
- Lime Dark
- Main Dark
- Nova
Classic Theme- Main
- Green
- Green Dark
- Lavender
- Lavender Dark
- Main Dark
- Metro
- Metro Dark
- Moonlight
- Opal
- Opal Dark
- Silver
- Silver Dark
- Uniform
Fluent Theme- Main
Also available for:
CLIENT-SIDE API HTML HELPER APIDescription
The Telerik UI for ASP.NET Core Grid provides a built-in PDF export functionality. The PDF format is very popular and widely used to present documents independently from the application software, hardware, and operating systems.
This demo shows how to export the content of the ASP.NET Core Data Grid to PDF by using a straightforward approach—to export the content of the component to PDF, include the corresponding command to its toolbar by setting .ToolBar(tools => tools.Pdf())
. For greater control over the
output, configure the PDF export setting. For instance, you can specify the file name and whether to export all
pages, margins, paper size, font, and so on. To initiate the PDF export programmatically, call the
saveAsPdf()
method from the client-side API.
Additionally, you can customize the appearance of the exported Data Grid
table by providing a template through the .Pdf(pdf => pdf.TemplateId("page-template"))
method.
This demo also demonstrates how to exclude a Grid column from export by configuring the Exportable setting.
For more information about the PDF export capabilities, refer to the official Telerik UI for ASP.NET Core Data Grid product documentation on the available PDF export approaches.