Tree + Lazy Loading

Hi

I want to support lazy loading in trees as it does in tables with LazyQueryContainer. Is this also possible or do I have to implement lazy Loading in trees by hand? Like listening on actions then fetch children from DB etc…

thx

I think that children are not loaded into the browser before you open up a node in the tree, which would mean that the server<->client part is lazy loaded. On the server side you just need to have a lazy loading container that supports Container.Hierarchical. Not sure if LazyQueryContainer implements Container.Hierarchical. If not, you’d have to implement that part.

Use Collapsible container. It provides the callback necessary to load/unload child items.
If you are trying to get this working for tree table you are out of luck because of how the tree table works. LazyLoadingContainer with its natural number list mechanism cannot be used for tree tables.

Thx…I’ll try your suggestions and look what fits best for me :slight_smile: