5 Answers, 1 is accepted
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).4) You should not experience this problem. Are you able to reproduce it with the current official version in the default example?
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.
1) Did you tried the second approach to hide the Delete context menu item? The example uses the DialogsCssFile property to import the fix.css file in the context menu and apply the .rmItem.rmFirst { display: none !important; } class to hide the delete item.
4) Thank you for reporting this behavior. I logged it in our ToDo list for enhancement in one of the next versions of the control. I added 500 Telerik points to your account for your feature request.
All the best,
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.
I noticed that you have a typo in the name of the Preview folder:
dialogDef.Parameters["DialogsCssFile"] = "~/Preivew/Styles/fix.css";
Is this the reason for the problem?
For your convenience I have attached my test project where the Delete item is removed from the context menu.
All the best,
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.
