Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Expand/collapse treeview nodes by clicking the node text

Thread Tools

Expand/collapse treeview nodes by clicking the node text

Tor Inge Rislaa
Posts: n/a
I need to expand/collapse TreeView nodes to show/hide childnodes by clikcing
on the node text (instead of using the expand/collapse icon). Does anyone
know how to do that? (What property has to be set on the TreeView control?)

My control I bound to a web.sitemap as below:

<?xml version="1.0" encoding="utf-8" ?>
<siteMapNode title="Home" url="Default.aspx">
<siteMapNode title="About" url="About.aspx" />
<siteMapNode title="Products" url="Products.aspx">
<siteMapNode title="Product1" url="Product1.aspx" />
<siteMapNode title="Product2" url="Product2.aspx" />
<siteMapNode title="Contact" url="Contact.aspx" />

(Language VB ASP.NET 2.0)


Reply With Quote

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
How to select particular Node and its child nodes in TreeView of ASP.Net 2005 ? Luqman ASP .Net 2 06-05-2007 07:36 PM
How to find node in TreeView by using string(the same as Node.Text) ? jiing ASP .Net 0 04-27-2007 02:34 AM
select nodes with child node A and child node B XML 1 11-01-2006 09:27 PM
xsl variable $node/text() but $node can non-node-set help! Tjerk Wolterink XML 2 08-24-2006 03:28 AM
XSLT Select nodes without text-node children whose names starts with specifix text Michael Reiche XML 3 02-05-2004 10:40 PM