468,510 Members | 1,836 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,510 developers. It's quick & easy.

How do I show the selected node in the TreeView?

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?
Mar 2 '08 #1
1 3679
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?= <fl****@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?
Mar 3 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by hzgt9b | last post: by
2 posts views Thread by ONIL | last post: by
2 posts views Thread by rfm | last post: by
9 posts views Thread by auntiejack56 | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.