The Telerik RadEditor dialogs are used to insert objects into the content area. These are the Image Manager, Flash Manager, Document Manager, Media Manager
and Template Manager
dialogs (commonly named FileBrowser dialogs).
Note: Starting from Q1 2012, the Image Manager has a new default thumbnail mode. The old grid mode could be restored by setting ViewMode='Grid'.
You can enable the RadEditor's Dialogs by using one of the following approaches:
- by manually adding the DialogHandler in your project's web.config file (in the httpHandlers section):<add verb="*" validate="false" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI"/>
- by clicking on the Smart Tag of the RadEditor control in Visual Studio. Note that the smart tag will appear only if you have the Telerik.Web.Design.dll file in your project's bin folder or in the GAC.
The FileBrowser dialogs consist of a FileBrowser object, an object previewer/property manager and a file uploader tab. The FileBrowser provides the ability to browse directories and locate a file item. Once a file item is selected, it (or its properties) is loaded in the previewer.
The files which will be available in a FileBrowser dialog are controlled by a set of properties for each dialog.
All dialogs have the ViewPaths, UploadPaths and DeletePaths properties in common which can be set in the [DialogName] tag:
-
ViewPaths - Specifies the paths where files are located. The FileBrowser dialog displays recursively all the subdirectories and the appropriate files.
-
UploadPaths - Specifies the paths to which users can upload files. To be visible, these paths should be a subset (or child paths) of a ViewPaths value.
-
DeletePaths - Specifies the paths from which users can delete files. To be visible, these paths should be a subset (or child paths) of a ViewPaths value.<telerik:RadEditor runat="server" ID="RadEditor1"> <ImageManager ViewPaths="~/images" UploadPaths="~/images/New" DeletePaths="~/images/New/Articles,~/images/New/News"/> <MediaManager ViewPaths="~/images" UploadPaths="~/images/New" DeletePaths="~/images/New/Articles,~/images/New/News"/> <FlashManager ViewPaths="~/images" UploadPaths="~/images/New" DeletePaths="~/images/New/Articles,~/images/New/News"/> <TemplateManager ViewPaths="~/images" UploadPaths="~/images/New" DeletePaths="~/images/New/Articles,~/images/New/News"/> <DocumentManager ViewPaths="~/images" UploadPaths="~/images/New" DeletePaths="~/images/New/Articles,~/images/New/News"/> </telerik:RadEditor>
Note, that by design all FileManagers work with virtual paths to folders placed inside the Application root. If you want to access files and folders from a different location you will need to implement a custom
FileBrowserContentProvider.
Related Resources