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

Import and Export

Loading Demo...
  • Edit in Theme Builder
  • import_export.cshtml
  • Import_ExportController.cs
  • EditorExportController.cs
  • EditorImportController.cs

Also available for:



This demo demonstrates how to import a file in Telerik UI for ASP.NET MVC Editor and how to export the Editor content. The import and export features internally rely on the Telerik Document Processing Library.

Telerik Document Processing is a bundle of UI-independent, cross-platform libraries enabling you to process the most commonly used flow, fixed and spreadsheet document formats. The components allow to create documents, import, modify and export them without external dependencies between the following different formats.

To enable the Import option in the Editor add the respective command in the Editor`s toolbar .Tools(tools => tools.Import()). By using the Import attribute you could configure the Proxy option or you could set the maximum file size and the allowed extensions of the imported file. You could import files with the following extensions through the Import option:

  • DOCX
  • RTF
  • HTML
  • TXT

To export the content include the corresponding command to the Editor’s toolbar .Tools(tools => tools.ExportAs()) and configure the export settings through the ExportAs attribute. For instance you should specify the Proxy option, which sets the Action to which the content will be submitted, or you can specify FileName attribute to set the name of the downloaded file.

  • DOCX
  • RTF
  • PDF
  • HTML
  • TXT

Support & Learning Resources