Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > How to expand a treenode

Reply
Thread Tools

How to expand a treenode

 
 
Mike
Guest
Posts: n/a
 
      02-10-2007
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,


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
what is equivalent of vb.net treenode.nextnode property in asp.net webcontrols.treenode tanya foster ASP .Net 3 05-18-2006 05:58 PM
How to select and expand a given treenode index (on client-side)? mehdi.mousavi@gmail.com ASP .Net Web Controls 0 09-20-2005 03:32 PM
populating treeview menu from db(treenode not defined error) naijacoder naijacoder ASP .Net 1 09-15-2004 03:11 AM
Should select child node automatically on selection of any treenode Aditi Deo via .NET 247 ASP .Net 0 06-05-2004 07:21 PM



Advertisments