| Issue 449: | Async loading with onLazyRead does not correctly trigger events such that reloadChildren does not work correctly. | |
| 1 person starred this issue and may be notified of changes. | Back to list |
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]);
May 1, 2014
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
|
Labels: Milestone-Release2.0