Control Folders in RAD File Explorer based on Permissions

2 posts, 0 answers
  1. Sheik Alavudeen
    Sheik Alavudeen avatar
    6 posts
    Member since:
    Apr 2010

    Posted 14 Jun 2010 Link to this post

    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
  2. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 17 Jun 2010 Link to this post

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