Search the web
Sign In
New User? Sign Up
ydn-javascript · Yahoo! User Interface Library Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
TreeView won't highlight node added to tree   Message List  
Reply | Forward Message #50169 of 52127 |
Hi guys,

Hopefully this is an easy one. I'm trying to add a node to a rendered tree, and
then i want to set that node to be highlighted. My code is something like the
below:

tree = new YAHOO.widget.TreeView("listing-categories");
tree.render();

...later on...

var parentNode = tree.children[0];
var tmp = new YAHOO.widget.TextNode(name, parentNode, false);
tmp.highlight();
parentNode.refresh();

I've tried render()'ing the tree again among other things. What am I missing?

Thanks in advance for any help.

-Jonathan





Thu Jul 2, 2009 9:47 pm

hifire81
Offline Offline
Send Email Send Email

Forward
Message #50169 of 52127 |
Expand Messages Author Sort by Date

Hi guys, Hopefully this is an easy one. I'm trying to add a node to a rendered tree, and then i want to set that node to be highlighted. My code is something...
hifire81
Offline Send Email
Jul 2, 2009
9:47 pm

The node highlighting only sets the className to reflect the highlightState of the node but does no visible changes on its own. You need to use either of the...
Satyam
satyamutsa
Offline Send Email
Jul 2, 2009
10:26 pm

Oops. I was looking for focus()!...
hifire81
Offline Send Email
Jul 3, 2009
1:59 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help