Learn how to say “no” to ugly apps with the new R1‘18 Telerik release. Sign up for the webinar!
All Components
Theme

SASS Themes (beta)

    LESS Themes

      SASS Theme Builder

      Create new or customize SASS themes
      Launch Theme Builder

      Grid / Export to Excel

       Product nameUnit priceUnits On OrderUnits in stock
      • 1
      No items to display

      Description

      This example shows how to enable the Export to Excel functionality of the Telerik MVC Grid extension.
      You have to include the Excel toolbar command .ToolBar(tools => tools.Excel()) as well as to specify the FileName export setting.

      Alternatively, you could force the Excel export by invoking the saveAsExcel method from the Client-side API of the component.

      Yet another useful option is the ability to customize the grid’s rows/columns and cells of the exported file by intercepting the excelExport event. You can find more information in the following help article.

      ASP.NET MVC source

      Also available for:

      • excel_export.cshtml
      • Excel_ExportController.cs
      • ProductService.cs

      Support & learning resources

      Grid for other technologies