New to Telerik UI for Blazor? Download free 30-day trial

PDF Export

The Telerik Document Processing tools that come with your Blazor license let you generate a PDF file based on the data in the grid.

The following sample projects show two ways to implement a PDF export

  • Export Grid to PDF on the Server - gets the DataSourceRequest from the grid and sends it to the server service for processing. It is used to let you fetch the same data that the grid has (including paging, filtering, sorting) so you can generate the PDF. For WebAssembly apps, this improves the performance by not generating the file in the browser, which is, at the time of writing, too slow for a real-life scenario.

  • PDF and JPG Export in the Browser with JS - uses Kendo JS libraries to generate the PDF file from the current DOM in the browser.

In the future, there will be a built-in feature in the grid for this so you don't have to generate the file on your own. You can Follow it here. At the moment, the WebAssembly scenario is too slow for us to release it, mainly due to the missing multithreading and AoT support for Blazor, and full AoT for Mono.

In this article