show some necessory directories

3 posts, 0 answers
  1. Ramesh
    Ramesh avatar
    2 posts
    Member since:
    Jul 2012

    Posted 07 Dec 2011 Link to this post

    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. Dobromir
    Dobromir avatar
    1633 posts

    Posted 08 Dec 2011 Link to this post

    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

    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
  3. Ramesh
    Ramesh avatar
    2 posts
    Member since:
    Jul 2012

    Posted 13 Dec 2011 Link to this post

    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

       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,

Back to Top