My favorites | Sign in
Project Home Downloads
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 246: Lazy Loading Not add append node if set a default node
1 person starred this issue and may be notified of changes. Back to list
Status:  WontFix
Owner:  ----
Closed:  May 2014


 
Reported by spd.so...@gmail.com, Nov 2, 2011
Hi,
I have a problem with lazy loading. I have a root node that I set it to lazy node. If I don't set a default child node to it, it load style lazy loading correctly. But if I set a default child node to it, it seem the lazy loading is stop working. All I need is just add a default child node to root node and when the root node display, I click on it to run lazy node to append more nodes to root node.

Do u have any ideas?

What steps will reproduce the problem?
1. create a root node and set lazy to it
2. add a default to root node
3. click root node to display lazy loading and add more child node

Here my sample code:

$(function(){
    $("#tree").dynatree({
        checkbox: true,
      children: [
        {title: "Item 1"},
        {title: "Folder 2", isFolder: true, expand:true, isLazy:true,
                children:[{title:"4", select: true}]
        },
        {title: "Item 3"}
      ],
        onLazyRead:function(node){
            url:'sample1.json'
        },
        onClick:function(node, event){
            if(node.data.expand){
             node.expand(true);
               alert(node.data.expand);
            }
        }
    });
});


What is the expected output? What do you see instead?
- after I do it, I just see a default node display in root node. It seem lazy reading not work.

What version of the product are you using?
On what operating system and browser?
- I use Dynatree 1.2.0
- Operating system: Window 7
- browser Chrome, Firefox, IE8


Thank before hand. 
May 1, 2014
Project Member #1 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
May 2, 2014
Project Member #2 moo...@wwwendt.de
Cleanup Scrumboard
Labels: Milestone-Release2.0

Powered by Google Project Hosting