471,337 Members | 808 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

Expand/collapse treeview nodes by clicking the node text

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" ?>
<siteMap>
<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>
<siteMapNode title="Contact" url="Contact.aspx" />
</siteMapNode>
</siteMap>

(Language VB ASP.NET 2.0)

TIRislaa
Feb 5 '07 #1
0 5067

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Gönen EREN | last post: by
2 posts views Thread by Stephen | last post: by
1 post views Thread by Edwin Knoppert | last post: by
1 post views Thread by SamSpade | last post: by
reply views Thread by Homer J. Simpson | last post: by
1 post views Thread by =?Utf-8?B?amV6MTIzNDU2?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.