Is there a way to tell the FileExplorer control to automatically expand the entire directory tree when it loads?
3 Answers, 1 is accepted
0
Accepted
Fiko
Telerik team
answered on 22 May 2009, 04:12 PM
Hi Chris,
The folders in the RadTreeView control that is embedded into the RadFileExplorer control is loaded on demand by using AJAX requests. That being said that TreeView control cannot be expanded when it is first loaded.
Can I request this functionality get added in a future release?
0
Fiko
Telerik team
answered on 24 Feb 2010, 02:52 PM
Hi WAMatt,
This feature already exists in the control, but it works only when the control is loaded for the first time. Also, only one node can be expanded. You can achieve this by setting InitialPath property of the control to a file or folder that is deep in the tree. For example if you have this folders structure:
- RootFilder
- Folder 1
- Folder 1.1
- Folder 1.1.1
- Folder 1.2
- Folder 2
and you set the InitialPath to be "/ApplicationRootDir/RootFolder/Folder 1/Folder 1.1/Folder 1.1.1" , then the TreeView will be opened with the Folder 1.1.1 folder selected.
As I mentioned, however, in my first reply to this post, the implementation of the RadFileExplorer control does not allow the TreeView's structure (inside the FileExplorer) to be fully expanded when the control is first loaded.
I hope this information helps.
Kind regards,
Fiko
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items.