I have just answered your support ticket on the subject - for convenience I will post my answer here as well:
For some reason the attached file did not make it through. Nevertheless, below you can see my comments concerning the code snippet provided in this forum thread:
- The built-in CheckReadPermissions method check whether the current folder is a subfolder of (or equal to) some of the paths set to the FileExplorer's ViewPaths property. It does not check the folder permissions of the current user but only the permissions given to the control. You can implement your own CheckReadPermissions() method trying to get the content directories of the current folder and list it on success.
- I noticed that you are returning the content of the original folder in the ResultDirectoryAsTree() method - you should change it in order to return only the accessible folders.
Below you can find a sample implementation of the above described approach. Feel free to modify it in order to fit your scenario best:
ExtendedFileProvider : Telerik.Web.UI.Widgets.FileSystemContentProvider
//constructor must be present when overriding a base content provider class
//you can leave it empty
(context, searchPatterns, viewPaths, uploadPaths, deletePaths, selectedUrl, selectedItemTag)
DirectoryItem baseDirectory =
List<DirectoryItem> folders =
} DirectoryItem newDirectory =
//return the updated directory information
DirectoryInfo di =
DirectoryInfo dirs = di.GetDirectories();
, ex.Message +
I hope this solution will be helpful for you.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.