PC Review


Reply
Thread Tools Rate Thread

ASP.Net 4 TreeView Collapses on Node Click

 
 
Dave
Guest
Posts: n/a
 
      26th May 2010
I have an ASP.Net 4 TreeView that's being populated by a
SQLSiteMapProvider and sits on a MasterPage. When I click a node the
tree collapses.

EnableViewState is set to True
ViewStateMode is set to Enabled

Am I missing something? How do I keep the tree state as it is when I
click a link?
 
Reply With Quote
 
 
 
 
Mark Rae [MVP]
Guest
Posts: n/a
 
      27th May 2010
"Dave" <(E-Mail Removed)> wrote in message
news:2038c0ba-5328-4138-b615-(E-Mail Removed)...

> Am I missing something? How do I keep the tree state as it is when I
> click a link?


This "feature" has always been there and I don't believe it's been addressed
in v4, though I may be wrong about that...

Anyway, it's fairly easily fixed in code.

This article describes the process:
http://blog.apterainc.com/software/t...nesia-and-you/


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

 
Reply With Quote
 
Dave
Guest
Posts: n/a
 
      27th May 2010
Nice, well written Article. Thanks Mark!



On May 27, 5:13*am, "Mark Rae [MVP]" <m...@markrae.net> wrote:
> "Dave" <Dave.Burk...@Jacobs.com> wrote in message
>
> news:2038c0ba-5328-4138-b615-(E-Mail Removed)...
>
> > Am I missing something? *How do I keep the tree state as it is when I
> > click a link?

>
> This "feature" has always been there and I don't believe it's been addressed
> in v4, though I may be wrong about that...
>
> Anyway, it's fairly easily fixed in code.
>
> This article describes the process:http://blog.apterainc.com/software/t...nesia-and-you/
>
> --
> Mark Rae
> ASP.NET MVPhttp://www.markrae.net


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
TreeView Node click Mark Goldin Microsoft Dot NET Framework Forms 3 7th Mar 2004 09:51 PM
Right click a node in treeview Darren Microsoft Dot NET Compact Framework 2 13th Feb 2004 05:44 PM
Treeview node click Jacek Microsoft Dot NET Compact Framework 1 23rd Oct 2003 12:37 AM
Treeview node right click Juan Romero Microsoft VB .NET 2 6th Sep 2003 12:04 AM
right-click of treeview (node) Bronco Oostermeyer Microsoft Dot NET Framework Forms 0 23rd Jul 2003 08:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:24 AM.