| Issue 413: | JSON "expand" attributes does not trigger onLazyRead | |
| 1 person starred this issue and may be notified of changes. | Back to list |
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
Mar 31, 2013
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
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
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
(No comment was entered for this change.)
Labels:
-Milestone-Release1.2.5 Milestone-Release2.0
|