File Explorer in FileTree files before subfolders

4 posts, 0 answers
  1. Karl Maynard
    Karl Maynard avatar
    19 posts
    Member since:
    Apr 2005

    Posted 22 May 2013 Link to this post

    Is there is setting that will allow me to show the treeview with the files directly under the folder/sub-folder they belong to when i have FileTree mode enabled?

    top level folder
    +-file1.jpg
    +-file2.jpg
    +-sub folder
       +-another1.jpg

    We have lots of sub folders and files at both levels, right now the users cant see the files as they are so far away from the folder they belong to - OR - they think the files belong to the last sub folder in the list :(

    We have already implemented custom providers, so that we can implement custom sorting over the folders and custom sorting of the files,... 
  2. Vessy
    Admin
    Vessy avatar
    1380 posts

    Posted 22 May 2013 Link to this post

    Hi Karl,

    Please, refer the following live demo, I believe you will find it helpful:
    Show all items in the TreeView

    Regards,
    Veselina Raykova
    Telerik
    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. UI for ASP.NET Ajax is Ready for VS 2017
  4. Karl Maynard
    Karl Maynard avatar
    19 posts
    Member since:
    Apr 2005

    Posted 22 May 2013 Link to this post

    That allows me to combine the folders & files which i have already done.

    That example shows the files belonging to the root folder BELOW the sub folders, i want the files belonging to the root folder ABOVE the sub folders.
  5. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 27 May 2013 Link to this post

    Hi Karl,

    If I understand you correctly you need to change the behaviour of how the files and folders are listed in the Tree, i.e. display files before folders.You can achieve this by handling the ExplorerPopulated event of RadFileExplorer and sort the items to fit your requirement, e.g.:

    protected void explorer1_ExplorerPopulated(object sender, RadFileExplorerPopulatedEventArgs e)
    {
        if(e.ControlName == "tree")
        {
            e.List.Reverse();
        }
    }


    Regards,
    Dobromir
    Telerik
    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.
Back to Top