R2 2018 Release is here – now with modern UI for chatbots and more! See what’s new!
Change Theme

SASS Themes

    LESS Themes

      SASS Theme Builder

      Create new or customize SASS themes
      Launch Theme Builder

      Grid / Export to PDF

      Important:

      This page loads pako zlib library (pako_deflate.min.js) to enable compression in the PDF. This is highly recommended as it improves performance and rises the limit on the size of the content that can be exported.

      The Standard PDF fonts do not include Unicode support. In order for the output to match what you see in the browser you must provide source files for TrueType fonts for embedding. Please read the documentation about custom fonts and drawing.

      Description

      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 shows how to export the Telerik for ASP.NET Core Grid contents to PDF.

      The approach is very straight-forward - to export the grid content to PDF include the corresponding command to the toolbar of the grid .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, 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 providing a template via the .Pdf(pdf => pdf.TemplateId("page-template")) method.

      More about Telerik Grid for ASP.NET Core

      ASP.NET Core source

      Also available for:

      • pdf_export.cshtml
      • Pdf_ExportController.cs

      Support & learning resources

      Grid for other technologies