| Issue 228: | When using Lazy Loading, "expand" is ignored | |
| 2 people starred this issue and may be notified of changes. | Back to list |
I lazy load all my data. No matter what I set (i.e. "expand: false"), the nodes always show as expanded. This would be OK if it then recursively lazy loaded those nodes, but it doesn't.
Sep 30, 2011
#1
Randg...@gmail.com
Oct 3, 2011
(No comment was entered for this change.)
Status:
Done
Jul 17, 2012
considered verified
Jul 17, 2012
(No comment was entered for this change.)
Status:
Verified
Jan 26, 2013
(No comment was entered for this change.)
Labels:
Milestone-Release0.0
Nov 11, 2013
Hello, I seem to be having a similar problem. I am expanding the node onRender to recursively open the children of a lazy tree. The tree opens up perfectly. However, I am unable to close a sub-branch when I click on the '-' sign. I am using dynaTree 1.2.4 and the console says " dtnode._expand(true) IGNORED ". Could you help me out with this bit? I am sure I am missing something here and this thread is the closest thread that I found on the internet.
Nov 11, 2013
I think doing this inside onRender might cause the problem. Try to expand the nodes after loading (postInit)
Nov 11, 2013
Yes, you are right. I realized that soon afterx Actually, I am doing something like this. I have a link call expand all. When I click on expand all , I need to expand all the lazy nodes. The data comes from the server, which is queried using a toolkit and brought into dynaTree format. This function is inside onLazyRead. So, I thought doing a node.expand(true) inside onRender would work. It looks like the event fires even when you close a node. Hence the deadlock. Any clue as to how I can deal with expand all? |