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

2 posts, 0 answers
  1. David Moore
    David Moore avatar
    23 posts
    Member since:
    Jul 2008

    Posted 12 Aug 2010 Link to this post

    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;

  2. Fiko
    Fiko avatar
    1406 posts

    Posted 17 Aug 2010 Link to this post

    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
  3. DevCraft R3 2016 release webinar banner
Back to Top