This example allows users to drag files to the Rich Text Editor to open them in the control. In the example, the work directory is not specified and Open and Save As operations are unavailable.
The Upload Control allows users to upload files from a client computer and save them on the server. Set the control's EnableDragAndDrop property to true
to enable drag and drop support. Assign the ASPxRichEdit control's identifier to the Upload control's ExternalDropZoneID property to upload files that users drag in the Rich Text Editor.
Once the file upload operation is completed, use the RichEditDocumentServer to save the file's content to a stream. Pass the stream to the Open method to open this document in the Rich Text Editor.
- Default.aspx (VB: Default.aspx)
- Default.aspx.cs (VB: Default.aspx.vb)
- How to upload a document in the working directory using drag-and-drop
- File Upload - Drag and Drop
- Rich Text Editor - Document Management
(you will be redirected to DevExpress.com to submit your response)