How to load multiple directory into parent node TAdvDirectoryTreeView

TMS Support Request: TAdvTreeView Grouping Functionality

Subject: Need Assistance with Node Grouping in TAdvTreeView

Context

I'm implementing a directory structure viewer using TAdvDirectoryTreeView but can't find sufficient documentation about batch node processing and grouping.

Objective

I need to:

  1. Load Directory using LoadDirectory
  2. Group all top-level nodes under a new parent node
  3. Store this grouped structure temporarily
  4. Repeat for multiple directories
  5. Finally display all grouped structures together

Current Approach

I'm trying to load a directory into a temporary TAdvDirectoryTreeView, then copy all the nodes into a parent node named after the source folder directly into my main TAdvDirectoryTreeView, and I'm trying to repeat this action X times for every directories to load.

Except I can't do it; the component doesn't seem to be suitable for this at all. Since there are so many folders, I don't want to resort to loading the entire directory one level above and deleting unnecessary nodes.

I would have appreciated a function like: LoadMultipleDirectory(groupByParentFolder: boolean = true) and thus specify multiple directories to load, groupable or not by the parent directory. This would allow loading a directory containing tons of folders by applying a "filter" to only have the relevant ones.

Thanks a lot !

This is indeed not possible. The TAdvDirectoryTreeView is not designed to load multiple directories. We'll consider this for a future update.