New to Telerik UI for ASP.NET Core? Download free 30-day trial
ASP.NET Core Grid Excel 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 enables you to export its content to Excel.
This example shows how to enable the Export-to-Excel functionality of the Data Grid and also how to exclude a Data Grid column from exporting by configuring the Exportable
setting.
To enable the Excel export option of the Grid, include the Excel toolbar command by configuring .ToolBar(tools => tools.Excel())
as well as to specify the FileName
export setting.
Alternatively, you can force the Excel export by invoking the saveAsExcel()
method from the client-side API of the component.
Yet another useful feature the Data Grid delivers is the option to customize the rows, columns, and cells of the exported file by intercepting the excelExport
event.
For more information about the Excel export capabilities, refer to the official Telerik UI for ASP.NET Core documentation on exporting the Data Grid content to Excel.