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

Expand entire tree on load

3 Answers 79 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 21 May 2009, 06:17 PM
Is there a way to tell the FileExplorer control to automatically expand the entire directory tree when it loads?

3 Answers, 1 is accepted

Sort by
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.

All the best,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
WAMatt
Top achievements
Rank 2
answered on 19 Feb 2010, 07:56 PM
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.
Tags
FileExplorer
Asked by
Chris
Top achievements
Rank 1
Answers by
Fiko
Telerik team
WAMatt
Top achievements
Rank 2
Share this question
or