You can disable the Delete option by not setting the DeletePaths property of the Image Manager, e.g.
< telerik:RadEditor ID="RadEditor1" Runat="server">
<ImageManager ViewPaths="~/" UploadPaths="~/" />
RadEditor is using RadFileExplorer control for its file browser dialogs and it does not offer the possibility to isolate Rename functionality.
It is possible to hide / remove Rename from the context menus with the following approaches:
- Register the external dialogs files and disable context menus at all by modifying the VisibleControls collection of RadFileExplorer declaration in the FileBrowser.ascx, e.g:
- Remove just the Rename element from the context menu. Information how to achieve this is available in the following articles / forum posts:
To get a reference to RafFileExplorer in the built-in dialogs see the solution provided in this KB article: Displaying single upload control in the FileBrowser Upload manager.
- To hide the new folder button set
For your convenience I prepared a sample project
which demonstrates how to obtain a reference to RadFileExplorer inside the FileBrowser dialogs and disable the Rename context menu item. By not specifying the DeletePaths property the Delete button was also not rendered on the toolbar.
All the best,
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed