View Full Version : Problem in expandPath in TreePanel
erfaan
16 Jul 2007, 11:06 PM
I call TreePanel.expandPath(path) immediately after TreePanel.collapseAll(). It is supposed to expand the tree. It changes the plus icon of the root node to the minus icon but tree does not expand at all.
TreePanel.collapseAll();
TreePanel.expandPath(path);
jack.slocum
16 Jul 2007, 11:15 PM
If you have animations enabled, collapseAll is an async operation. You must wait for it to complete before trying to expand a different path.
Try this:
tree.root.collapse(true, false); // true for deep, false to disable anim
tree.expandPath(path);
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.