Moving a directory up from the path specified in the mapping file

2 posts, 0 answers
  1. MBEN
    MBEN avatar
    159 posts
    Member since:
    Nov 2011

    Posted 12 Jul 2012 Link to this post

    I have a file explorer control which picks up files from a shared location. I want the default view to be set on a particular directory but I want the user to be able to move up and down the entire directory structure on my computer.Is it possible to do that?
  2. Vessy
    Vessy avatar
    1350 posts

    Posted 17 Jul 2012 Link to this post


    If I understand your scenario correctly, you want to set a directory, which will be seen by the user initially, but which is not the root directory of the project.

    If this is the case, you have to set the initial directory's path as a value to the InitialPath property of RadFileExplorer. Keep in mind that the value set to the property is case sensitive and should be in the same format as shown in the RadFileExplorer's address bar (without "~" in front of it). The value of the ViewPaths property should be equal to the outermost folder the user should be able to access.

    For example, with the sample code below, the user will be initially placed in the directory "Images" and will be able to navigate up to the "FileExplore" directory.

    <telerik:RadFileExplorer ID="RadFileExplorer1" Runat="server" Height="311px" Width="687px" Configuration-UploadPaths="True" InitialPath="/FileExplorer/ExplorerSource/Images" >
        <Configuration ViewPaths="~/FileExplorer" UploadPaths="~/FileExplorer" DeletePaths="~/FileExplorer" />

    I hope this was helpful for you.

    All the best,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. DevCraft R3 2016 release webinar banner
Back to Top