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

physical path error

1 Answer 133 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 19 May 2014, 03:41 PM
Hi
I am trying to use the File Explorer to point view a folder on the server, the folder will be different for each user so I need to set the path at run time, I have tried the following code but I get the error  :'D:/Testing/Project3_dev/' is a physical path, but a virtual path was expected.

Dim paths() As String = {"D:\Testing\Project3_dev", "\\LocalPath"}
Me.rfeServerFiles.Configuration.ViewPaths = paths

can anyone help please?

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 20 May 2014, 01:07 PM
Hello Mark,

By design RadFileExplorer works only with virtual paths to folders inside the application root.

In order to configure RadFileExplorer to work with shared drives or physical paths you need to implement custom content provider. Such provider is available in the following KB article:
Use RadFileExplorer with physical and shared folder's paths

More detailed information on how to implement custom content provider is available in the following help article:
Using custom FileBrowserContentProvider

Additionally, please note that the latest moment of the page life-cycle where the FileExplorer's path can be configured is the Page_Load event.

Kind regards,
Vessy
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
FileExplorer
Asked by
Mark
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or