473,320 Members | 1,794 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

use scrollbars in Treeview on website

ton
Hi,

How can I limit the size of a treeview on a webform so the user can scroll
on its page.

I've allready placed the control in a DIV like:

<div style="OVERFLOW:auto; WIDTH:100%; HEIGHT:140px">
<asp:TreeView style="Z-INDEX: 100; LEFT: 0px; POSITION: absolute; TOP:
0px" Height="200px" id="TreeView1" runat="server" ImageSet="XPFileExplorer"
NodeIndent="15" Width="176px" ShowLines="True">
<ParentNodeStyle
Font-Bold="False"></ParentNodeStyle>
<HoverNodeStyle ForeColor="#6666AA"
Font-Underline="True"></HoverNodeStyle>
<SelectedNodeStyle BackColor="#80FFFF"
HorizontalPadding="0px" VerticalPadding="0px" Font-Underline="False"
BorderStyle="Solid"></SelectedNodeStyle>
<NodeStyle NodeSpacing="0px" HorizontalPadding="2px"
ForeColor="Black" VerticalPadding="2px" Font-Size="8pt"
Font-Names="Tahoma"></NodeStyle>
</asp:TreeView>
</div>

but nothing happens, the entire list is shown and visible on the webpage

thanx
ton

Jun 27 '08 #1
1 2290
You've defined the treeview's position as absolute, taking it out of
the parent div. Try applying the overflow property to the treeview
itself or redesigning to preserve the relationship between the
container div and your treeview control so that the overflow property
applies successfully to both.
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jay Ayliff | last post by:
Hi All, I have a VB.NET winforms app created in VS2003. It has a datagrid that is dynamically created on a tab. When the tab is displayed the scrollbars for the datagrid appear inside the outline...
0
by: SJ via .NET 247 | last post by:
For some reason, the scrollbars in my treeview component are not working. The scrollable property is set to True. I have the treeview in a panel. Does that make any difference? ...
1
by: Benny Raymond | last post by:
Hi, I'm drawing some icons (and sometimes extra text) to the right of nodes in my tree view depending on different properties they might have. The only problem i'm running into is that the scroll...
14
by: Evan Kontos | last post by:
I am trying to implement a Treeview w/an XML file and I even copied and pasted examples from MSDN but can't get them to work. Any suggestions welcome. XML File <TREENODES> <TREENODE...
17
by: Dino M. Buljubasic | last post by:
I have a treeview and a checked list view controls one beside another. I want to make them work so that when I scroll down or up one of them the other does the same. Any help will be...
3
by: sklett | last post by:
A little dramatic maybe, but I've just finished my pass on the "UI Polish" and only one things remains (well, I guess I haven't finished then!) Vertical Scrollbar position. Doh! Part of my code...
0
by: uncensored | last post by:
Hi, Sort of new with the whole treeview control and I was wondering is there a way to build a treeview menu using my SQL data I pull from a database instead of having to hard code it into the...
0
by: Mufasa | last post by:
I have a website that I've developed with a treeview that works fine on the development environment. I then copy it to our production server and the tree view won't work. One of the things I did...
1
by: =?Utf-8?B?SmVzcGVyLCBEZW5tYXJr?= | last post by:
Hi, Is there a way to detect whenever scrollbars (the vertical) are shown on a treeview I need to know. 1) If scrollbars are visible after a rezise 2) If scrollbars are visible after change...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.