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

Nothing working as it should... Source control perhaps?

1 Answer 38 Views
This is a migrated thread and some comments may be shown as answers.
David Moore
Top achievements
Rank 1
David Moore asked on 12 Aug 2010, 04:58 PM
I'm attempting to use the radfileexplorer to browse a folder on the root of my web application.  The application is in source control, although I do have the directory I'm wishing to use checked out.

I cannot get it to display any of the files contained in this directory (although it will show child directories).  All of the buttons in the toolbar are disabled.

<telerik:RadFileExplorer runat="server" ID="FileExplorer1" EnableOpenFile="true" DisplayUpFolderItem="true" EnableCreateNewFolder="true" Enabled="true">                   
<Configuration ViewPaths="~/test" UploadPaths="~/test" DeletePaths="~/test" />

I've also attempted setting the paths in the codebehind also to no effect.

protected void Page_Load(object sender, EventArgs e)
        string[] applicationName = new string[] { this.ResolveUrl("~/test") };
        string[] allowedUploadPaths = new string[] { this.ResolveUrl("~/test") };
        string[] allowedDeletePaths = new string[] { this.ResolveUrl("~/test") };
        FileExplorer1.Configuration.ViewPaths = applicationName;
        FileExplorer1.Configuration.DeletePaths = allowedDeletePaths;
        FileExplorer1.Configuration.UploadPaths = allowedUploadPaths;


1 Answer, 1 is accepted

Sort by
Telerik team
answered on 17 Aug 2010, 01:31 PM
Hello Dave,

The RadFileExplorer's configuration looks correct and you should not experience any problems. If the files exist in the directory(ies) they should be shown in the RadFileExplorer control as well.
In your case I recommend you to create a new folder and add some files inside. Then set the newly created folder to the RadFileExplorer's ViewPaths, DeletePaths and UploadPaths properties and test the site again. If the files are shown, then I recommend you to check the permissions set to the problematic folder. Least this code should not throw any exception and should be able to read the files from that folder:
DirectoryInfo directory = new DirectoryInfo(pathToDirectory");
FileInfo[]  files = directory.GetFiles(searchPattern);

In case case that the problem still exists, could you please send me a runnable project which shows the problem? I will debug it on my side and do my best to provide a working solution as soon as possible.

Kind regards,
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
Asked by
David Moore
Top achievements
Rank 1
Answers by
Telerik team
Share this question