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

FolderView vs FileView

2 Answers 65 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Xorcist
Top achievements
Rank 1
Xorcist asked on 13 Jul 2011, 03:11 PM
Is there anyway to setup the FileExplorer so the right hand "FileView" side excludes folders and only shows files? I'd like to use the left hand "FolderView" side for navigation through my directory structure, and the right hand side for only accessing files.

P.S. Is there any way to hide the address/path bar?

2 Answers, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 15 Jul 2011, 09:12 AM
Hi Xorcist,

You can achieve the required result by handling RadFileExplorer's ExplorerPopulated event and filter the items populating the Grid, e.g.:
protected void RadFileExplorer1_ExplorerPopulated(object sender, RadFileExplorerPopulatedEventArgs e)
{
    if (e.ControlName == "grid")
    {
        List<FileBrowserItem> files = new List<FileBrowserItem>();
        foreach (var item in e.List)
        {
            if (item is FileItem)
                files.Add(item);
        }
 
        e.List = files;
    }
}

I hope this helps.

All the best,
Dobromir
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Xorcist
Top achievements
Rank 1
answered on 15 Jul 2011, 04:09 PM
Ahh... that's exactly what I needed, thanks!
Tags
FileExplorer
Asked by
Xorcist
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Xorcist
Top achievements
Rank 1
Share this question
or