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

File Explorer in FileTree files before subfolders

3 Answers 121 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Karl Maynard
Top achievements
Rank 1
Karl Maynard asked on 22 May 2013, 08:40 AM
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,... 

3 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 22 May 2013, 11:47 AM
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.
0
Karl Maynard
Top achievements
Rank 1
answered on 22 May 2013, 01:48 PM
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.
0
Dobromir
Telerik team
answered on 27 May 2013, 01:16 PM
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.
Tags
FileExplorer
Asked by
Karl Maynard
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Karl Maynard
Top achievements
Rank 1
Dobromir
Telerik team
Share this question
or