Dynamical HierarchicalContainer

To handle large size of data, I want to define a dynamical HierarchicalContainer and then bind it to a Tree or TreeTable:

  1. When the container is initialized, only root items are loaded from database.
  2. When an root item is expanded, its children are loaded dynamically.
  3. Continue to load their children until leaf items are found.

Currently I can handle the feature above with ExpandListener(). To be transparent, dynamical HierarchicalContainer is better. I wonder whether someone in the forum has a solution or not.

Thanks in advance.