I have six treeviews on a page. Each treeview is in an accordion pane. If a treeview node is clicked, it gets highlighted. When a different accordion pane is selected, I would like to make sure all other treeviews do not have any nodes selected anymore.
Is there a way to do this?
Thanks for that answer, but I would like to accomplish this whenever the user selects a different accordion pane. I also am trying to figure out how to programmatically change the background color for a selected node. Thanks.
mikecollins
Member
5 Points
34 Posts
Deselecting TreeView Node
Jun 26, 2008 09:31 PM|LINK
I have six treeviews on a page. Each treeview is in an accordion pane. If a treeview node is clicked, it gets highlighted. When a different accordion pane is selected, I would like to make sure all other treeviews do not have any nodes selected anymore. Is there a way to do this?
chetan.sarod...
All-Star
65619 Points
11118 Posts
Re: Deselecting TreeView Node
Jun 27, 2008 03:36 AM|LINK
Use Selected property of TreeNode
Set it to False
http://msdn.microsoft.com/hi-in/library/system.web.ui.webcontrols.treenode.selected(en-us,VS.80).aspx
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
mikecollins
Member
5 Points
34 Posts
Re: Deselecting TreeView Node
Jun 27, 2008 03:05 PM|LINK
Thanks for that answer, but I would like to accomplish this whenever the user selects a different accordion pane. I also am trying to figure out how to programmatically change the background color for a selected node. Thanks.