This is a migrated thread and some comments may be shown as answers.

How to remove Rename and Delete option from the Image Manager

1 Answer 139 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Raman Rathinavelu
Top achievements
Rank 1
Raman Rathinavelu asked on 21 Jun 2010, 08:13 AM
Hi All,
I'm using Telerik Rad Editor in my project. In the Image Manager, I want only the New Folder and Upload option. I do not want Delete and Rename option. Kindly help me how to remove Delete and Rename option.

Kind Regards,
Raman

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 21 Jun 2010, 09:53 AM
Hello Raman,

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="~/" />
</telerik:RadEditor>

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:

1.     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:

<telerik:RadFileExplorer ID="RadFileExplorer1" Height="410px" Width="400px" TreePaneWidth="150px"

    runat="Server" EnableOpenFile="false" AllowPaging="true" VisibleControls="TreeView,Toolbar,Grid,AddressBox" />

2.     Remove just the Rename element from the context menu. Information how to achieve this is available in the following articles / forum posts:
http://www.telerik.com/community/forums/aspnet-ajax/file-explorer/disable-the-rename-option.aspx
http://www.telerik.com/support/kb/aspnet-ajax/fileexplorer/remove-delete-and-upload-commands.aspx




Sincerely yours,
Rumen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Editor
Asked by
Raman Rathinavelu
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or