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

[Solved] How to disable context menu item with DialogOpener

1 Answer 90 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rachael L
Top achievements
Rank 1
Rachael L asked on 15 Dec 2009, 10:25 PM
Morning all,

I just follow the example ( http://www.telerik.com/support/kb/aspnet-ajax/editor/using-the-image-and-document-managers-outside-radeditor.aspx) using DialogOpener, and I have been asked to disable 'Delete' from context menu. I can not find a way to access to default RadContextMenu. Does anybody know how to do this?  BTW: I am working on RadControls_for_ASP.NET_AJAX_2009_1_402.

Q2: I use subversion for version control, so that I can see the .svn hidden folder after setting up dialogParams.ViewPaths. Is there any way to not show such hidden folders except implementing customer FileSystemContentProvider.

Q3: How can I show image thumbnails after loading image manager with my current version (have no chance to upgrade to higher version recently)

Many thanks in advance.

Cheers,
Rachael

1 Answer, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 16 Dec 2009, 03:10 PM
Hi Rachael,

Straight to the questions:
1) if the DeletePaths property is not set
imageManagerParameters.DeletePaths = new string[] { "~/Images" };
documentManagerParameters.DeletePaths = new string[] { "~/Documents" };
then the Image manager will not render the Delete button and the Delete item in the context menu.

Another way to hide the delete context menu item is to set the DialogsCssFile property
imageManager.Parameters["DialogsCssFile"] = "~/fix.css"; 
and load a fix.css file with the following content:

.rmItem.rmFirst { display: none !important; }

which will hide the Delete item in the right click context menu.

2) It is not possible to hide some folders by setting the ViewPaths property only. You can see how to implement this feature in this KB article: Hide certain directories and files in RadFileExplorer.

3) The Image Manager does not offer the required thumbnails view (image gallery mode).

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Rachael L
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or