WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 setting an initial selection on WebFXTree, Ray Kerby, March 17, 2004
     Re:setting an initial selection on WebFXTree, Emil A Eklund, March 18, 2004
         Re:setting an initial selection on WebFXTree, Ray Kerby, March 18, 2004

Subject: Re:setting an initial selection on WebFXTree From: Ray Kerby Date: March 18, 2004

Thanks. If this was in the online doc, I apologize for missing it.

Ray

From: Emil A Eklund
Sent: March 18, 2004
Subject: Re:setting an initial selection on WebFXTree

Simply call to select method on the desired node to achieve this effect.

var tree = new WebFXTree(...);
var node = new WebFXTreeItem(...);
tree.add(node);
document.write(tree.toString());
node.select()

/Emil
------------------------------------------------------

I have a scenario in which I need to build a WebFXTree object with multiple WebFXTreeItems, and I need to automatically select one of the tree items.
In other words, the initial display of the tree should show the item selected.
How can this be done?
Thanks, Ray
p.s. a cc: to my email would be greatly appreciated





Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX