Expand entire tree on load

4 posts, 1 answers
  1. Chris
    Chris avatar
    20 posts
    Member since:
    Jan 2009

    Posted 21 May 2009 Link to this post

    Is there a way to tell the FileExplorer control to automatically expand the entire directory tree when it loads?
  2. Answer
    Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 22 May 2009 Link to this post

    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.
  3. WAMatt
    WAMatt avatar
    17 posts
    Member since:
    Sep 2009

    Posted 19 Feb 2010 Link to this post

    Can I request this functionality get added in a future release?
  4. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 24 Feb 2010 Link to this post

    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.
Back to Top