what is the most efficient way to get all items (not just root items or specific children) from the TreeGrid?
This one just returns the root items…
public Stream<T> getAllItems() {
return getDataProvider().fetch(new HierarchicalQuery<>(null, null));
}
The only way right now would go through getTreeData().getChildren(item) recursively. Is there a better way?
as far as I can tell, that’s the only way you can do it now. I think you’re better off fetching the items outside of the data provider - there’s no guarantee that there is an end to the hierarchy.