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

show some necessory directories

2 Answers 39 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Ramesh
Top achievements
Rank 1
Ramesh asked on 07 Dec 2011, 06:46 AM
Hi Team,
    A scenario like this i have a root folder called FileExplorer/default/documents/  inside the ../documents folder i have some folders called
apple,orange,banana,mango,lime.  In these folders i want to show only apple and lime in Treeview(I think that, Normally which folder is visible in the treeview the same folder and their files only can view in the grid also), and those folders should allow all the properties like Create folder(that is sub folder), delete(sub folders and files) , upload(all the file formats inside the folder) and etc ...
 
Can u please help me how to do like this



Thank you all,

2 Answers, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 08 Dec 2011, 12:02 PM
Hi Ramesh,

You can filter the folders displayed in the RadFileExplorer by implementing a custom content provider that subclass the built-in FileSystemContentProvider and override its ResolveRootDirectoryAsTree() method. Similar approach is used in the following live demo to filter specific files:
FileExplorer / Filter files and download

More detailed information on how the RadFileExplorer's content provider is working is available in the following help article:
Using custom FileBrowserContentProvider

Regards,
Dobromir
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
0
Ramesh
Top achievements
Rank 1
answered on 13 Dec 2011, 07:37 AM
Hey Team,

Thanks for reply

From Your reply i can able to do file filters but i want to know how to show few necessary folders in the file explorer tree view

(i.e)
   My scenario is, I have 5 folders namely A,B,C,D,E in my root folder but i want to view only 2 folders in that , the two folders namely B,E
could u please give me a sample for this scenario



Thank you Team,


 
Tags
FileExplorer
Asked by
Ramesh
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Ramesh
Top achievements
Rank 1
Share this question
or