physical path error

2 posts, 0 answers
  1. Mark
    Mark avatar
    8 posts
    Member since:
    Nov 2012

    Posted 19 May 2014 Link to this post

    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?
  2. Vessy
    Admin
    Vessy avatar
    1389 posts

    Posted 20 May 2014 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top