Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Web Controls (http://www.velocityreviews.com/forums/f63-asp-net-web-controls.html)
-   -   How to expand a treenode (http://www.velocityreviews.com/forums/t779576-how-to-expand-a-treenode.html)

Mike 02-10-2007 05:53 PM

How to expand a treenode
 
Hello,

Is there anyone who can tell me howto expand a treenode in a Treeview
WebControl with the use of scripting. I have found out that selecting a
treenode is done with the "selectedNodeIndex" property of the treeview
control.


MyTreeview.selectedNodeIndex = "0.1"


This property can however only be set if the treenode with the specified
index is expanded. If the treenode is not expanded the result of setting the
property is that the treenode with index "0" is selected.


How can I make sure the specified treenode is expanded before setting the
"selectedNodeIndex" property.


Thanks in advance,




All times are GMT. The time now is 10:16 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.