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

Remove 'Upload' From Right Click Menu

2 Answers 111 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Randy
Top achievements
Rank 1
Randy asked on 19 Jan 2012, 08:06 PM
Hi,

Can you please tell how I can remove the 'Upload' option from the right click context menu in the FileExplorer control?

Thank you very much!

Kind regards,
Randy Sullivan

2 Answers, 1 is accepted

Sort by
0
Accepted
Haris
Top achievements
Rank 1
answered on 19 Jan 2012, 10:32 PM
Hi Randy, you can use PreRender event and remove the option from context menu:

RadFileExplorer fileExplorer = sender as RadFileExplorer;
 
// Remove Upload option from Context Menu
RadMenuItem item = fileExplorer.GridContextMenu.Items.FindItemByValue("Upload");
if (item != null) { fileExplorer.GridContextMenu.Items.Remove(item); }

Hope this helps.

-Haris
0
Randy
Top achievements
Rank 1
answered on 19 Jan 2012, 11:32 PM
Thank you Haris! This worked perfectly!

Kind regards,
Randy Sullivan
Tags
FileExplorer
Asked by
Randy
Top achievements
Rank 1
Answers by
Haris
Top achievements
Rank 1
Randy
Top achievements
Rank 1
Share this question
or