Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

How do I show the selected node in the TreeView?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Flyguy - 02 Mar 2008 03:46 GMT
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?
Steven Cheng - 03 Mar 2008 03:56 GMT
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?= <flyguy@nospam.nospam>
>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?

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.