FolderView vs FileView

3 posts, 0 answers
  1. Xorcist
    Xorcist avatar
    92 posts
    Member since:
    Apr 2009

    Posted 13 Jul 2011 Link to this post

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

    Posted 15 Jul 2011 Link to this post

    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!

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Xorcist
    Xorcist avatar
    92 posts
    Member since:
    Apr 2009

    Posted 15 Jul 2011 Link to this post

    Ahh... that's exactly what I needed, thanks!
Back to Top