By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,913 Members | 1,317 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,913 IT Pros & Developers. It's quick & easy.

Expand/collapse treeview nodes by clicking the node text

P: 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)

Feb 5 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.