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

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

1 Answer 76 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
MBEN
Top achievements
Rank 2
Veteran
MBEN asked on 12 Jul 2012, 08:56 PM
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?

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 17 Jul 2012, 03:27 PM
Hi,

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" />
</telerik:RadFileExplorer>

I hope this was helpful for you.

All the best,
Veselina
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.
Tags
FileExplorer
Asked by
MBEN
Top achievements
Rank 2
Veteran
Answers by
Vessy
Telerik team
Share this question
or