| 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 |
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
Mar 19, 2013
(No comment was entered for this change.)
Status:
Invalid
Labels: Milestone-Release1.2.4 |