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
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.
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.