Forums / Developing with Sitefinity / RadFileExplorer

RadFileExplorer

6 posts, 0 answered
  1. vikas
    vikas avatar
    3 posts
    Registered:
    10 Jul 2012
    06 Apr 2009
    Link to this post
    Hi

      I am  working on RadFileExplorer telerik control. This control display 4 options on right click as delete,rename,create folder,upload. I have need to remove rename and delete option from this on right click.

    Please help me.Its urgent.

    Regards
    vikas goel
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16065 posts
    Registered:
    18 Dec 2014
    06 Apr 2009
    Link to this post
    Hi vikas,

    There are two type of controls under RadFileExplorer - TreeView and RadGrid. This means that whenever you want to make any changes to the control you should modify the both parts - the grid and the treeview.

    Here is an example that demonstrates disabling the RadMenu items. I will show you how to do this for delete. If you want you can disable or allow showing of other menu items. We are going to use js on the client side in our control template where we have declare our control. We use Sys.Application.add_load - thus our code will be execuded on page load. We find RadExplorer control and we get gridContextMenu and treeview. We have an function hideMenu which we call to hide the items on right click.

    <script language="javascript"
        Sys.Application.add_load(applicationLoadHandler); 
     
        function applicationLoadHandler() { 
            var radExplorer = $find('<%= radExplorer.ClientID %>'); 
     
            var contextMenu = radExplorer.get_gridContextMenu(); 
            hideMenu("Delete", contextMenu); 
            //hideMenu("New Folder", contextMenu); 
     
            var treeView = radExplorer.get_tree(); 
            var menus = treeView.get_contextMenus(); 
            for (var i in menus) { 
                hideMenu("Delete", menus[i]); 
                //hideMenu("New Folder", menus[i]); 
            } 
        } 
     
        function hideMenu(text, contextMenu) { 
            var menuItem = contextMenu.findItemByText(text); 
            menuItem.hide(); 
        } 
         
        </script> 
     
    <telerik:RadFileExplorer ID="radExplorer" runat="server" Skin="Vista" > 
     <Configuration ViewPaths="~/Sitefinity/" UploadPaths="~/Sitefinity/" /> 
     
    </telerik:RadFileExplorer> 
     

    I hope this helps.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  3. Santy.e
    Santy.e avatar
    2 posts
    Registered:
    16 May 2007
    11 Dec 2009
    Link to this post
    Hello,

    I need translate the words (NewFolder,Open,Copy,Paste, etc) in the control RadFileExplorer to spanish,  can you help me?

    Thanks
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    18 Dec 2014
    14 Dec 2009
    Link to this post
    Hi Santy.e,

    I have sent a response to in a forum thread on the same topic that you have started. Please check RadFileManager Language

    Kind regards,
    Radoslav Georgiev
    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.
  5. sankara
    sankara avatar
    1 posts
    Registered:
    18 Nov 2010
    03 Dec 2010
    Link to this post
    Hi Telerik Team,

    I would like to add document CheckIn/CheckOut functionality in radfilexplorer() control.
     
    Please help how can add this functionality as Fileexplorer's Grid Context Menu Item.

    Regards,
    Sankara
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16065 posts
    Registered:
    18 Dec 2014
    03 Dec 2010
    Link to this post
    Hi sankara,

    You need to create a custom provider for RadFileExplored and bind it to a files in source save or TFS.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
6 posts, 0 answered