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