Remove 'Upload' From Right Click Menu

3 posts, 1 answers
  1. Randy
    Randy avatar
    12 posts
    Member since:
    Jan 2012

    Posted 19 Jan 2012 Link to this post

    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. Answer
    Haris
    Haris avatar
    7 posts
    Member since:
    Mar 2011

    Posted 19 Jan 2012 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Randy
    Randy avatar
    12 posts
    Member since:
    Jan 2012

    Posted 19 Jan 2012 Link to this post

    Thank you Haris! This worked perfectly!

    Kind regards,
    Randy Sullivan
Back to Top