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

InitialPath(s)

2 Answers 84 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Mattias
Top achievements
Rank 1
Mattias asked on 09 Jul 2009, 08:04 AM
Hi,
I want to use the fileexplorer to list directories and files.
But I need to have 2 initial paths (because of user role management), do I need to build a custom provider for that or is it possible to add 2 different root paths?
I have checked the custom file content provider demo:
http://demos.telerik.com/aspnet-ajax/fileexplorer/examples/dbfilebrowsercontentprovider/defaultcs.aspx
but it feels complicated to build!

It would be great if there were a way to add multiple paths to the explorer like:
RadFileExplorer1.InitialPaths.Add("~/Folder1"); 
RadFileExplorer1.InitialPaths.Add("~/Folder2"); 
 

Regards,
Mattias

2 Answers, 1 is accepted

Sort by
0
Mattias
Top achievements
Rank 1
answered on 09 Jul 2009, 08:36 AM
Hmm, it seems that I didn't understand how the explorer works! :)
I could just add the paths to RadFileExplorer1.Configuration.ViewPaths and it's done!

/Mattias
0
Mattias
Top achievements
Rank 1
answered on 09 Jul 2009, 08:38 AM
It would be a nice feature if I could mark my own post as "answer" in this forum!

/Mattias
Tags
FileExplorer
Asked by
Mattias
Top achievements
Rank 1
Answers by
Mattias
Top achievements
Rank 1
Share this question
or