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

Control Folders in RAD File Explorer based on Permissions

1 Answer 231 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Sheik Alavudeen
Top achievements
Rank 1
Sheik Alavudeen asked on 14 Jun 2010, 01:06 PM
Dear All,

Presently, I have the scenario of File Explorer to show the specific root folders and corresponding files. Here, for the above condition, I am using RAD File Explorer. Sametime, I already implemented the sepearte permissions like View Folder, Delete Folder, create Folder, rename Folder in DB Level. The same permissions implemented for file level also.

Now, the requirement need to apply the permissions to the RAD File Explorer control to control the type of permissions based on the current user. Ex: If he has View Folder Permission he can view only the particular folder and files. The remaining folders need to be hide. The same need to apply for the file level.

Please, if anybody have the better solution.. help me..

Thanks,
Sheik Aladin

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 17 Jun 2010, 12:31 PM
Hi Sheik,

The latest moment of the page life cycle in which you can configure RadFileExplorer is Page_Load event. You can configure RadFileExplorer to display different folders for different users as follows:
protected void Page_Load(object sender, EventArgs e)
{
    string loggedUser = Session["LOGGEDUSER"];
 
    RadFileExplorer1.Configuration.ViewPaths = new string[] {"~\files\\"+loggedUser, "~\images\\"+loggedUser};
    RadFileExplorer1.Configuration.UploadPaths = new string[] {"~\files\\"+loggedUser+"\uploads", "~\images\\"+loggedUser+"\uploads"};
    RadFileExplorer1.Configuration.DeletePaths = new string[] {"~\files\\"+loggedUser, "~\images\\"+loggedUser};
}

In addition, if you want to just filter specific files and/or folders depending on the logged user, I believe this KB article will be of great help.

Sincerely yours,
Dobromir
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
Tags
FileExplorer
Asked by
Sheik Alavudeen
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or