JavaScript.CoolDev.Com Support Forums

Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ExpandAll Function is extremely slow.

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    JavaScript.CoolDev.Com Forum Index -> COOLjsTree
Author Message
shruti.gongle



Joined: 14 May 2007
Posts: 2

PostPosted: Mon May 14, 2007 2:11 pm    Post subject: ExpandAll Function is extremely slow. Reply with quote

Hi,
I recently started using cooltree and i have implemented checkboxes at each level. I have 3 level tree, but the number of nodes is large (>1000 nodes in all).
I want to expand all the nodes at load, but this is taking forever. I also have ExpandAll and CollapseAll buttons. In the subsequent hits, the expandAll is pretty fast.
Is there any way I can speedup the expandAll on load?

Rest all functionality is working fine.
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Mon May 14, 2007 10:49 pm    Post subject: Reply with quote

You're hitting browser's performance limits. There is no way to speed up global expansion.

Please, think twice:

1. If you're expanding all nodes at load time, then you actually don't need dynamic expansion/collapsion - you can use plain HTML tree.

2. Hardly anyone wants to see 1000+ nodes (and checkboxes) at the same time.
Back to top
shruti.gongle



Joined: 14 May 2007
Posts: 2

PostPosted: Mon May 14, 2007 11:12 pm    Post subject: Reply with quote

Do you think if I get the prof version, it will speed up the performance? I see the prof version has some added features.
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Mon May 14, 2007 11:37 pm    Post subject: Reply with quote

I repeat: you're hitting browser's limits.
Back to top
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    JavaScript.CoolDev.Com Forum Index -> COOLjsTree All times are GMT
Page 1 of 1