New to Telerik UI for Blazor? Download Free 30-day trial
Grid - Excel Export
- EXAMPLE
- VIEW SOURCE
- EDIT IN TELERIK REPL
- Change Theme
default
Configurator
Select columns for export
Export
Drag a column header and drop it here to group by that column
Id | ProductName | UnitsInStock | On Order | ReorderLevel | QuantityPerUnit | Price |
---|
1 | Chai | 39 | 0 | 10 | 10 boxes x 20 bags | 18 |
2 | Chang | 17 | 40 | 25 | 24 - 12 oz bottles | 19 |
3 | Aniseed Syrup | 13 | 70 | 25 | 12 - 550 ml bottles | 10 |
4 | Chef Anton's Cajun Seasoning | 53 | 0 | 0 | 48 - 6 oz jars | 22 |
5 | Chef Anton's Gumbo Mix | 0 | 0 | 0 | 36 boxes | 21.35 |
6 | Grandma's Boysenberry Spread | 120 | 0 | 25 | 12 - 8 oz jars | 25 |
7 | Uncle Bob's Organic Dried Pears | 15 | 0 | 10 | 12 - 1 lb pkgs. | 30 |
8 | Northwoods Cranberry Sauce | 6 | 0 | 0 | 12 - 12 oz jars | 40 |
9 | Mishi Kobe Niku | 29 | 0 | 0 | 18 - 500 g pkgs. | 97 |
10 | Ikura | 31 | 0 | 0 | 12 - 200 ml jars | 31 |
- Export-excel.razor
- ProductService.cs
- ProductDto.cs
Loading the demo source code...please wait.
Description
You can export the grid to Excel with a click of a button. The current filter, sort, page, grouping, column order and column size are applied to the xlsx
document. You can also choose whether to export only the current page, or all the data.
This Blazor Data Grid Excel Export example is part of a unique collection of hundreds of Blazor demos, with which you can see all Telerik UI for Blazor components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for Blazor or ThemeBuilder.