Issue 449: Async loading with onLazyRead does not correctly trigger events such that reloadChildren does not work correctly.
Status:  WontFix
Owner: ----
Closed:  May 2014
Reported by billst...@gmail.com, Jul 31, 2013
What steps will reproduce the problem?
1.  Use an asynchronous onLazyRead function.  
2.  Call reloadChildren with a callback specified. 
3.  Never receive the callback. 

Dynatree version 1.2.4
Mac OsX operating system. 
HTML document type. 

I've attached a patch that fixes it in dynatree, but there are other ways to fix it as well.  The author suggested that these fixes could just be applied to the non-dynatree source file, and that works too.  To do that, add the following to the end of your onLazyLoad method: 

   node.setLazyNodeStatus(DTNodeStatus_Ok);				
   var event = "nodeLoaded.dynatree." + node.tree.$tree.attr("id") + "." + node.data.key;
   node.tree.$tree.trigger(event, [node, true]);


mods.diff
2.0 KB   View   Download
Jul 31, 2013
Project Member #1 moo...@wwwendt.de
Thanks for reporting this.
This is also already be solved for the successor 'Fancytree' (needs testing though)
Status: Accepted
Labels: Milestone-Release2.0
May 1, 2014
Project Member #2 moo...@wwwendt.de
As of 2014 Dynatree is feature frozen.
Please have a look at Fancytree (sequel of DynaTree 1.x): chances are good that the problem was resolved / the requested featuer is already implemented.
Please open a new issue there otherwise:

https://github.com/mar10/fancytree
Status: WontFix