PC Review


Reply
Thread Tools Rate Thread

How do I show the selected node in the TreeView?

 
 
Flyguy
Guest
Posts: n/a
 
      2nd Mar 2008
I have a TreeView with so many nodes that it requires scroll bars. When the
user selects a node the screen is refreshed and the selected node is no
longer visible. The TreeView is opened to the selected node but the screen
is not scrolled to it. How can I get the TreeView to show the selected node
after it has been refreshed?
 
Reply With Quote
 
 
 
 
Steven Cheng
Guest
Posts: n/a
 
      3rd Mar 2008
Hi,

As for the following question you mentioned:

==========
How can I get the TreeView to show the selected node after it has been
refreshed?
===========

do you mean you want to keep the browser at the original position(before it
postback) when you select a Node in TreeView?

If this is the case, you can try setting the
"MaintainScrollPositionOnPostback" attribute to "true" on the aspx page.
This can help make the page keep scroll to the last point before you
perform postback operations(such as select node in TreeView or click a
postback button...):

<%@ Page Language="C#" ..............
MaintainScrollPositionOnPostback="false" %>


Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
>From: =?Utf-8?B?Rmx5Z3V5?= <(E-Mail Removed)>
>Subject: How do I show the selected node in the TreeView?
>Date: Sat, 1 Mar 2008 19:46:01 -0800


>
>I have a TreeView with so many nodes that it requires scroll bars. When

the
>user selects a node the screen is refreshed and the selected node is no
>longer visible. The TreeView is opened to the selected node but the

screen
>is not scrolled to it. How can I get the TreeView to show the selected

node
>after it has been refreshed?
>


 
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
RE: How to show Selected treeview node's attribute,values in listbox t Frank Uray Microsoft C# .NET 2 17th Feb 2009 08:50 AM
Treeview node selected Mark Microsoft VB .NET 2 25th Jun 2008 10:47 PM
Context menu popup on treeview node returning wrong selected node Claire Microsoft C# .NET 2 5th Mar 2007 11:59 AM
TreeView Selected Node =?Utf-8?B?UmFq?= Microsoft ASP .NET 0 16th Feb 2007 09:35 AM
TreeView Selected Node Brian P. Hammer Microsoft Dot NET Framework Forms 1 8th Jul 2003 08:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:42 PM.