I'm trying to understand if what I'm seeing is by design. It appears that when I use a remote HierarchicalDataSource (HDS) with loadOnDemand=false that the datasource "read" method is called for each level of the tree. Is the philosophy here that if you would only use a remote HDS when you have larger datasets to return on demand for different levels of the Hierarchical data? Or, said another way, is it not supported to have a remote HDS return the full structure once and have the TreeView use that and not make any more remote calls (or, use "fetch" at least)?
Alternatively, if I use an HDS with local data with loadOnDemand=false, like:
then the TreeView works with the full data as expected. The trouble here is that I want to provide my data via ajax in one call - not have it called for each level of the tree. And right now it seems I would need to make that ajax call to get the data and then create the HDS as if it is working with local data to avoid all these remote calls.
Am I missing something?