This example is a combination of the Custom Document Management in Rich Text Editor and Custom Document Management in Spreadsheet demo modules. In addition, some extra file formats are supported (.jpg, .pdf). You can easily add additional file formats support if necessary. Note that we use the ASPxPopupControl container and load the require controls to it dynamically based on the selected file path and extension. We need to restore the dynamically generated controls hierarchy in the Page_Init event handler (see KA18606 - How to create controls dynamically).
We handle the ASPxClientFileManager.SelectedFileOpened event to trigger file open operation. Thus, you need to double-click the required file item or press the Enter key to initiate this operation.
See Also:
T318308 - How to open documents using ASPxFileManager
T298675 - How to show files preview as a thumbnail in ASPxFileManager
↧
ASPxFileManager - How to implement a custom document management for different document types
↧