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

Prevent Delete of top folder

1 Answer 106 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Mario Nigg
Top achievements
Rank 1
Mario Nigg asked on 22 Nov 2010, 05:30 PM
Hi all

I'm using the FileExplorer control in a scenario with the following requirements:

a) Physical paths for the files should not accessible through IIS 
=> I'm working on implementing an adapted version of the the "PhysicalpathFilesystemProvider"

b) The permissions should be set in a way that a user can upload files, create new folders and delete files/folders under a designed "home" (top) folder, but should not be allowed to delete or rename his "home" folder, for example:
"D:\userdata\10711" is the "home" folder for user 10711, where he should have full rights to anything that is in located in that folder and its subfolders, but he should not be allowed to delete or rename the "10711" folder. 
=> I've played around with different configurations of viewPaths, uploadPaths and deletePaths, but have not found a way to set the permissions accordingly. But perhaps I'm overseeing something since I figure this must be quite a common scenario ...

Thanks in advance for any help,
Michael

1 Answer, 1 is accepted

Sort by
0
Accepted
Dobromir
Telerik team
answered on 25 Nov 2010, 04:03 PM
Hi Michael,

I have already answered your support ticket on the subject. For convenience I will paste my answer here as well.

By design RadFileExplorer does not allow its ROOT directories to be deleted or renamed. Are you able to actually delete the root folder? If so, could you please provide a sample project so we can examine the custom content provider.

If the problem is that the Delete button is enabled, I would recommend you to manually disable it when the selected folder is the root. For your convenience I have attached a demo project to this thread which shows the exact steps in order to do this. Could you please check it and let me know whether it fits your requirements?


Greetings,
Dobromir
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
FileExplorer
Asked by
Mario Nigg
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or