473,414 Members | 1,764 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,414 software developers and data experts.

Treeview Question

Hi,

i'm using the treeview from the Microsoft.Web.UI.Webcontrols.Treeview.

It works fine.
But my problem is that I don't get scrollbars if my treeview is too long or
too wide for my frame.
What can I do about this?

Thx.
Nov 18 '05 #1
5 1693
Wrap your treeview in a div. In the style attribute of the div set the
height and width properties and also set overflow:auto, therefore when the
contents of the div exceed the specified height or width settings scrollbars
will appear.
e.g
<div style="height:600px;width500:px;overflow:auto">
!--Treeview Here--!
</div>

"Bart Schelkens" <BS********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

i'm using the treeview from the Microsoft.Web.UI.Webcontrols.Treeview.

It works fine.
But my problem is that I don't get scrollbars if my treeview is too long or too wide for my frame.
What can I do about this?

Thx.

Nov 18 '05 #2
Thx
it works just fine now

"Steve Flitcroft" <as*******@hotmail.com> wrote in message
news:Oe**************@TK2MSFTNGP10.phx.gbl...
Wrap your treeview in a div. In the style attribute of the div set the
height and width properties and also set overflow:auto, therefore when the
contents of the div exceed the specified height or width settings scrollbars will appear.
e.g
<div style="height:600px;width500:px;overflow:auto">
!--Treeview Here--!
</div>

"Bart Schelkens" <BS********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

i'm using the treeview from the Microsoft.Web.UI.Webcontrols.Treeview.

It works fine.
But my problem is that I don't get scrollbars if my treeview is too long

or
too wide for my frame.
What can I do about this?

Thx.


Nov 18 '05 #3
I found a new problem (sorry).

I develop with my screen resolution 1024x768 and the div works just fine.
When I change my resolution to 800x600 I can't reach the horizontal
scrollbar.
Is there a way to dynamically change the size of the DIV according to the
screen-resolution?
"Steve Flitcroft" <as*******@hotmail.com> wrote in message
news:Oe**************@TK2MSFTNGP10.phx.gbl...
Wrap your treeview in a div. In the style attribute of the div set the
height and width properties and also set overflow:auto, therefore when the
contents of the div exceed the specified height or width settings scrollbars will appear.
e.g
<div style="height:600px;width500:px;overflow:auto">
!--Treeview Here--!
</div>

"Bart Schelkens" <BS********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

i'm using the treeview from the Microsoft.Web.UI.Webcontrols.Treeview.

It works fine.
But my problem is that I don't get scrollbars if my treeview is too long

or
too wide for my frame.
What can I do about this?

Thx.


Nov 18 '05 #4
Yup, you could use some javascript within the body onload event to query the
client resolution.and depending which screen res set the appropriate height
for the div
e.g
var size=screen.height;
var divsize;
switch (true)
{
case (size==600):
divsize=X;
case (size==768):
divsize=Y;
}
document.all.yourdiv.style.height=divsize;
"Bart Schelkens" <BS********@hotmail.com> wrote in message
news:ee*************@TK2MSFTNGP10.phx.gbl...
I found a new problem (sorry).

I develop with my screen resolution 1024x768 and the div works just fine.
When I change my resolution to 800x600 I can't reach the horizontal
scrollbar.
Is there a way to dynamically change the size of the DIV according to the
screen-resolution?
"Steve Flitcroft" <as*******@hotmail.com> wrote in message
news:Oe**************@TK2MSFTNGP10.phx.gbl...
Wrap your treeview in a div. In the style attribute of the div set the
height and width properties and also set overflow:auto, therefore when the contents of the div exceed the specified height or width settings

scrollbars
will appear.
e.g
<div style="height:600px;width500:px;overflow:auto">
!--Treeview Here--!
</div>

"Bart Schelkens" <BS********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

i'm using the treeview from the Microsoft.Web.UI.Webcontrols.Treeview.

It works fine.
But my problem is that I don't get scrollbars if my treeview is too
long or
too wide for my frame.
What can I do about this?

Thx.



Nov 18 '05 #5
I downloaded the IE controls but when I compile them i don't get the dll.
can u provide me the dll directly
Thanx
Nitin
"Bart Schelkens" <BS********@hotmail.com> wrote in message
news:e3**************@TK2MSFTNGP10.phx.gbl...
Thx
it works just fine now

"Steve Flitcroft" <as*******@hotmail.com> wrote in message
news:Oe**************@TK2MSFTNGP10.phx.gbl...
Wrap your treeview in a div. In the style attribute of the div set the
height and width properties and also set overflow:auto, therefore when the contents of the div exceed the specified height or width settings

scrollbars
will appear.
e.g
<div style="height:600px;width500:px;overflow:auto">
!--Treeview Here--!
</div>

"Bart Schelkens" <BS********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

i'm using the treeview from the Microsoft.Web.UI.Webcontrols.Treeview.

It works fine.
But my problem is that I don't get scrollbars if my treeview is too
long or
too wide for my frame.
What can I do about this?

Thx.



Nov 18 '05 #6

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

Similar topics

3
by: Michael C | last post by:
Hi all, Quick question about the TreeView control. I'm using code like this to determine the currently clicked TreeNode in the TreeView. private void MyTreeView_MouseDown(object sender,...
0
by: John | last post by:
Hi all, I have a puzzling question. I'm loading a treeview conrol with nodes and now need to send data with it but for it not to be shown. I need to use it later. To give an example, a datagrid...
0
by: Bart Schelkens | last post by:
Hi, I'm working with the Microsoft.Web.UI.WebControls.TreeView. I've put it in a <div></div> so that it would display scrollbars whenever the text was too wide or too high. Now how can I...
0
by: Patrick Olurotimi Ige | last post by:
I have a code below that i use to populate a treeview menu from the DB('m using the Treeview webcontrol). I can get the ChildRows but i want to make the "nodeProd.Text = rowProd("ProductName")" a...
0
by: Woody Splawn | last post by:
Could someone tell me what the command might be to clear *everything* out of a treeview. That is, suppose I have a treeview with numerous nodes open. I would like the user to be able to press...
2
by: Randall Hale | last post by:
I'm trying to dynamically create values for a context menu (popup), depending upon which node is highlighted in a Treeview control. This is not a problem, if you select the node with the left...
3
by: Kelvin Leung | last post by:
Hi I use Drag and Drop between 2 TreeView Control under VB.Net But I found that it cannot work when I add sub-class for each node Is it drag and drop method cannot work when the node with...
3
by: Shawn | last post by:
Hi. I'm working with the TreeView control in my ASP.NET 1.1 application. I have a problem I haven't been able to figure out. When I click on a node (not expand), whether it's a parent node, a...
0
by: MichaelY | last post by:
I'm using the 2.0 TreeView, and thus far have been able to get most everything out of it I need (context menus on nodes, lazy loading, etc.). However, there is a scenario in which I'm not sure what...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.