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 228: When using Lazy Loading, "expand" is ignored
2 people starred this issue and may be notified of changes. Back to list
Status:  Verified
Owner:  ----
Closed:  Oct 2011


 
Reported by Randg...@gmail.com, Sep 30, 2011
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
OK - it seems to be because I have "persist" set to true. If I turn off persist it works correctly.
Oct 3, 2011
Project Member #2 moo...@wwwendt.de
(No comment was entered for this change.)
Status: Done
Jul 17, 2012
Project Member #3 moo...@wwwendt.de
considered verified
Jul 17, 2012
Project Member #4 moo...@wwwendt.de
(No comment was entered for this change.)
Status: Verified
Jan 26, 2013
Project Member #5 moo...@wwwendt.de
(No comment was entered for this change.)
Labels: Milestone-Release0.0
Nov 11, 2013
#7 anirudh....@gmail.com
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
Project Member #8 moo...@wwwendt.de
I think doing this inside onRender might cause the problem. Try to expand the nodes after loading (postInit)
Nov 11, 2013
#9 anirudh....@gmail.com
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? 

Powered by Google Project Hosting