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

RadFileExplorer with Shared Drive not working as expected

1 Answer 176 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Saravanan
Top achievements
Rank 1
Saravanan asked on 17 Aug 2015, 07:08 AM

I'm having a RadFileExplorer on my program and mapping it to a Shared Drive. The first level of treeview is loading as expected and when I click on the expand button on the treeview, the folders are not being loaded. And any files are not displayed on the file viewer on the right column. Below is my code, kindly let me know what could be the issue.

 

protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (!Page.IsPostBack)
                {
                    string[] viewPaths = Directory.GetDirectories(@"\\vmtywebAA02\develop\", "*", SearchOption.TopDirectoryOnly);
 
                    RadFileExplorer1.Configuration.ViewPaths = viewPaths;
                    RadFileExplorer1.Configuration.SearchPatterns = new[] { "*.*" };
                    RadFileExplorer1.Configuration.ContentProviderTypeName = typeof(CustomFileSystemProvider).AssemblyQualifiedName;                    
                }
            }
            catch (Exception)
            {
                throw;
            }
        }

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 20 Aug 2015, 08:11 AM
Hi Saravanan,

By design RadFileExplorer can work only with virtual paths to folders placed inside the application root directory. In order to list the content of a shared drive you have to implement a custom contet provided like the one attached by us here: Use RadFileExplorer with physical and shared folder's paths

Can you verify that you are using this provider in your application or did you implement your own one? i am asking you that as the described behavior is usually experienced when FileExplorer cannot access the given paths properly and so only a folder with the name of the root directory is created, without accessing its actual content. If this is not the case, though, please, prepare and send us a runnable version of your project so we can examine the problematic behavior at our side.

Regards,
Vessy
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
FileExplorer
Asked by
Saravanan
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or