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

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

1 Answer 176 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Ajay
Top achievements
Rank 2
Ajay asked on 02 Nov 2009, 07:57 AM
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
 

1 Answer, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 04 Nov 2009, 11:22 AM
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.
Tags
FileExplorer
Asked by
Ajay
Top achievements
Rank 2
Answers by
Fiko
Telerik team
Share this question
or