Issue 413: JSON "expand" attributes does not trigger onLazyRead
Status:  Done
Owner: ----
Closed:  Mar 2013
Reported by bjohnson...@gmail.com, Mar 26, 2013
What steps will reproduce the problem?
1. Version 1.2.4 of dynatree
2. Windows
3. Chrome Browser / HTML5

When we use initAjax to initially load the tree we set the "expand" attribute for some parent nodes if we have default selections when the tree loads.  This does not trigger the onLazyRead event for those expanded nodes.  Should it?  Because what happens is only the single child is displayed and not its siblings because the parents children have not been fully loaded with onLazyRead.



Mar 26, 2013
#1 bjohnson...@gmail.com
We also set "isLazy" to true for the parent node but this does not seem to help.
Mar 31, 2013
Project Member #2 moo...@wwwendt.de
this is currently by design.
If you want a delayed lazy loading of sub nodes, you would have to call node.expand() in the in the postinit event.
Status: Done
Labels: Milestone-Release1.2.5
Mar 31, 2013
#3 bjohnson...@gmail.com
You mentioned this is by design.  Is there a specific reason as I do not see how this is a good thing.  Especially if we set the "isLazy" attribute.  If the incoming JSON has both "expand" and "isLazy" is there any reason why this should not trigger a lazy read?
Apr 9, 2013
Project Member #4 moo...@wwwendt.de
I did not mean that it is a bad thing, just that it's not implemented at the moment.
The current workaround would be to implement it in one of the callbacks.
(Yet note that there are currently some problems reported with too many parallel lazy-expands at the same time.)

Fancytree will probably have something like this built-in (and should also allow auto loading lazy nodes without the need to expand them)
Sep 7, 2013
Project Member #5 moo...@wwwendt.de
(No comment was entered for this change.)
Labels: -Milestone-Release1.2.5 Milestone-Release2.0