These forums are read-only and considered to be an archive. Please use the new Community for future interaction and posts.

Remove or disable "Open With Web Browser"

I am using a MasterPage in my project.

FileUltimate has been added to a ContentPage.

How do I disable or remove  the " Open With Web Browser" feature when right-clicking a filename.

The suggestion below does not seem to work.
        <script type="text/javascript">
            fileManager.ContextMenus.FileGridRow.menuItems["OpenWith"].Hide();
        </script>

Also, cannot find a way to do this from code behind.


thanks,
mikez
mikez 1/22/2014 11:34 AM
Hi Mike,
The line seems correct but the context/order should be the issue.

You should first register a client loaded event:

<GleamTech:FileManager ID="fileManager" runat="server" ClientLoaded="fileManagerLoaded" > ...

and do your customizations in this function:

<script type="text/javascript">

  function fileManagerLoaded(sender, eventArgs) {
      var fileManager = sender;
      
      fileManager.ContextMenus.FileGridRow.menuItems["OpenWith"].Hide();
  }

</script>
Cem Alacayir 1/22/2014 12:01 PM