By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,417 Members | 1,088 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,417 IT Pros & Developers. It's quick & easy.

vertical scrolling issue

P: n/a
I am currently using Visual Studio 2005 for a project and I am
attempting to employing the new treeview control using I have
placed the treeview on top of a panel and have enabled vertical
scrolling on the panel. The problem is that when I scroll down towards
the bottom of the treeview and click on one of the nodes the scroll bar
jumps back to the top. Is there anyway to keep the vertical scroll bar
in the same position after I click on a lower level node in the


<%@ Page Language="VB" AutoEventWireup="false"
CodeFile="BudgetCreate.aspx.vb" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

<html xmlns="" >
<head runat="server">
<title>Untitled Page</title>
<form id="form1" runat="server">
&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br />
<br />
&nbsp;<br />
<br />
<br />
<br />
&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;
<hr style="z-index: 102; left: 0px; position: absolute; top:
0px" />
<hr style="z-index: 103; left: 0px; position: absolute; top:
0px" />
<hr style="z-index: 104; left: 0px; position: absolute; top:
0px" />
<asp:Panel ID="Panel1" runat="server" Height="104px"
ScrollBars="Vertical" Style="z-index: 105;
left: 0px; position: absolute; top: 0px" Width="200px">
<asp:TreeView ID="TreeView1" runat="server" Style="z-index:
100; left: 0px; position: absolute;
top: 0px">
<asp:TreeNode Text="New Node" Value="New
<asp:TreeNode Text="Expenses" Value="Expenses">
<asp:TreeNode Text="Auto" Value="Auto">
<asp:TreeNode Text="Fuel"
<asp:TreeNode Text="Insurance"
<asp:TreeNode Text="Maintenance"
<asp:TreeNode Text="Clothing"
<asp:TreeNode Text="Donations" Value="Donations">
<asp:TreeNode Text="Church"
<asp:TreeNode Text="Red Cross" Value="Red
<asp:TreeNode Text="Medical" Value="Medical">
<asp:TreeNode Text="Dentist"
<asp:TreeNode Text="Alergist"

Nov 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.