New to Telerik UI for ASP.NET MVC? Download free 30-day trial

ASP.NET MVC TreeList Export to Excel

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
excel_export.cshtml
Excel_ExportController.cs
EmployeeDirectoryController.cs

Also available for:

CLIENT-SIDE API SERVER-SIDE API

Description

Out of the box, the Telerik for ASP.NET MVC TreeList component enables you to export its data to Excel. Under the hood, the Excel export functionality builds a kendo.ooxml.Workbook. Prior to the export itself, you can further modify the file by using the built-in configuration options of the TreeList, such as exporting multiple pages, modifying the name of the Excel file, saving the exported file on the server, and more.

This demo showcases how to enable the Excel export functionality through the Toolbar() configuration option and, also, how to change the name of the Excel file on the server by setting the ProxyURL() and FileName() configuration methods.

Additional Apps

This TreeList example is part of a unique collection of hundreds of ASP.NET MVC demos, with which you can see all Telerik ASP.NET MVC 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 the ThemeBuilder.

Support & Learning Resources

Additional Resources