store and apply virtual path to FileExplorer

2 posts, 1 answers
  1. Robert
    Robert  avatar
    68 posts
    Member since:
    Feb 2009

    Posted 18 Jan 2012 Link to this post

    I'm writing to ask how best to store a document path in an SQL Server - if the document path is in a different drive;

    For example, if a View Path is stored as \Customers - and is in the root folder of the web application, I am able to apply the path to the RadFileExplorer with the below code - after obtaining the document path from the SQL Server database:

    RadFileExplorer1.Configuration.ViewPaths = listViewPaths.ToArray();

    However, if the document path is in a different drive - such as

    \\FLEET01\D$\Documents\Customers\ - the RadFileExplorer is not populated;

    No errors occur on the web server, which indicates to me that the format is OK;

    Any insight is appreciated;

  2. Answer
    Dobromir avatar
    1633 posts

    Posted 20 Jan 2012 Link to this post

    Hi Robert,

    In order to populate RadFileExplorer with folders / files that are not physical application's subfolders you need to assign a custom content provider to the control. Please review the following help article for more detailed information regarding RadFileExplorer's content provider abstraction:
    Using custom FileBrowserContentProvider

    In the following KB article you can find an example of custom content provider that is allows RadFileExplorer to operate with physical and shared paths:
    Use RadFileExplorer with physical and shared folder's paths

    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
Back to Top