| 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 |
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
Status:
WontFix
May 2, 2014
Cleanup Scrumboard
Labels:
Milestone-Release2.0
|