New to Telerik UI for ASP.NET MVC? Download free 30-day trial
ASP.NET MVC Editor Import and 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 SERVER-SIDE APIDescription
This demo shows 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 toolbar of he Editor .Tools(tools => tools.Import())
. By using the Import
attribute, you can configure the Proxy
option or set the maximum file size and the allowed extensions of the imported file. Through the Import
option, you can import files with the following extensions:
- DOCX
- RTF
- HTML
- TXT
To export the content of the Editor, include the corresponding command to its toolbar .Tools(tools => tools.ExportAs())
and configure the export settings through the ExportAs
attribute. For example, specify the Proxy
option, which sets the Action
to which the content will be submitted, or specify the FileName
attribute to set the name of the downloaded file.
- DOCX
- RTF
- HTML
- TXT