HOW TO RESTRICT CONTEXT MENU for an ROOT in TREE VIEW of RAD FILE EXPLORER

2 posts, 0 answers
  1. Ajay
    Ajay avatar
    66 posts
    Member since:
    May 2009

    Posted 02 Nov 2009 Link to this post

    Hi Telerik Guys !

    I have been using RAD FILE EXPLORER in my project so for & is working fine until I got an major task to perform. This task includes :--

    I have to show two ROOTS within same/one RAD FILE EXPLORER with restricting the CONTEXT MENU options on to one of the ROOT , while to show some of the CONTEXT MENU option on to the other ROOT.

    For example :-- Lets say I have two ROOTS 

        i.e. ----+ FTP MANAGEMENT

             ----+ SHARED DOCUMENTS  

    Now what I want is to perform two operations from the FTP MANAGEMENT ROOT
    (a.) DELETE FOLDER :- Delete folders for the FTP MANAGEMENT ROOT
    (b.) MOVE FILES :- Move file for FTP MANAGEMENT to SHARED DOCUMENT

    While, I do not want to perform any operations from the SHARED DOCUMENTS ROOT.

    Please suggest whether I have to restrict the CONTEXT MENU for the SHARED DOCUMENT ROOT or someting else to do ?

    Please help !!

    Iam attaching the screen-shot of the two scenario so for , please acknowledge them.


    Please help help how to proceed ?

    Ajay Jamwal
     
  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 04 Nov 2009 Link to this post

    Hi Ajay,

    This scenario is supported out of the box by the RadFileExplorer control. You need to set the delete permission to the "FTP MANAGEMENT" folder but not to the "SHARED DOCUMENTS" one. In this case when you right click on the second folder or subfolders, the  "Delete" command in the context menu will be disabled by the RadFileExplorer control. Note that, if you do not set delete permission to a folder, then the Move and Rename command will be restricted as well. For example you can use this configuration :
    <telerik:RadFileExplorer ID="RadFileExplorer1" runat="server" Height="500px" Width="1000px">
        <Configuration
        ViewPaths="~/FTP MANAGEMENT/, ~/SHARED DOCUMENTS /"
        DeletePaths="~/FTP MANAGEMENT/"
        />
    </telerik:RadFileExplorer>

    I hope this helps.

    Greetings,
    Fiko
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top