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 408: function getNodeByKey didn't work if node loaded from ajax
1 person starred this issue and may be notified of changes. Back to list
Status:  Invalid
Owner:  ----
Closed:  Mar 2013


 
Reported by yehezqie...@gmail.com, Mar 17, 2013
Hi.. It's first time for me using dyna tree..
When I load children directly when initializing tree, such as  
children: [ 
                {title: "Item 1"},
                {title: "Folder 2", "key":"item2", isFolder: true,
                    children: [
                        {title: "Sub-item 2.1"},
                        {title: "Sub-item 2.2"}
                    ]
                },
                {title: "Item 3"}
            ],
then if I run this method, it was work :
var tree = $("#tree").dynatree("getTree");
var node = tree.getNodeByKey("item2");
alert(node);

But when I load child nodes on demand (lazy loading) using ajax like this :   initAjax: { url: "getDataCategory"}. Method above didn't work..
Node was null...

I'm using the latest version of dyna tree..
Any suggestion or it is a bug ?
thx..

                    
Mar 18, 2013
#2 yehezqie...@gmail.com
solved.. There's already function loadKeyPath to get node if loaded from ajax..
thx..
Mar 19, 2013
Project Member #3 moo...@wwwendt.de
(No comment was entered for this change.)
Status: Invalid
Labels: Milestone-Release1.2.4

Powered by Google Project Hosting