I'm using TreeVirtual and I created buttons to expand and collapse all nodes
within the tree. Under IE8, the expand runs slow enough that I get the "Stop
running this script?" message box. Any suggestions on how to speed it up?
Collapse is quick. The slow part appears to be the nodeSetOpened call.
Here's my code-
var treeData = tree.getDataModel().getData();
for (var i = treeData.length - 1; i > 0; i--) {
if (treeData[i]) {
tree.nodeSetOpened(treeData[i], true);
}
}
If I had to guess, it's the screen updates between each call that is slowing it
down. Is there a way to disable it while updating all the nodes?
Thanks,
Rich
Confidentiality Notice: This e-mail message, including any attachments, is for
the sole use of the
intended recipient(s) and may contain confidential and privileged information.
Unauthorized
review, use, disclosure or distribution is prohibited. If you are not the
addressee indicated in this
message kindly notify the sender by reply e-mail and destroy all copies of the
original message.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel