Hi,
i'm using the treeview from the Microsoft.Web.U I.Webcontrols.T reeview.
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. 5 1706
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:6 00px;width500:p x;overflow:auto ">
!--Treeview Here--!
</div>
"Bart Schelkens" <BS********@hot mail.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. .. Hi,
i'm using the treeview from the Microsoft.Web.U I.Webcontrols.T reeview.
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.
Thx
it works just fine now
"Steve Flitcroft" <as*******@hotm ail.com> wrote in message
news:Oe******** ******@TK2MSFTN GP10.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:6 00px;width500:p x;overflow:auto "> !--Treeview Here--! </div>
"Bart Schelkens" <BS********@hot mail.com> wrote in message news:%2******** ********@TK2MSF TNGP10.phx.gbl. .. Hi,
i'm using the treeview from the Microsoft.Web.U I.Webcontrols.T reeview.
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.
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*******@hotm ail.com> wrote in message
news:Oe******** ******@TK2MSFTN GP10.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:6 00px;width500:p x;overflow:auto "> !--Treeview Here--! </div>
"Bart Schelkens" <BS********@hot mail.com> wrote in message news:%2******** ********@TK2MSF TNGP10.phx.gbl. .. Hi,
i'm using the treeview from the Microsoft.Web.U I.Webcontrols.T reeview.
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.
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.hei ght;
var divsize;
switch (true)
{
case (size==600):
divsize=X;
case (size==768):
divsize=Y;
}
document.all.yo urdiv.style.hei ght=divsize;
"Bart Schelkens" <BS********@hot mail.com> wrote in message
news:ee******** *****@TK2MSFTNG P10.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*******@hotm ail.com> wrote in message news:Oe******** ******@TK2MSFTN GP10.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:6 00px;width500:p x;overflow:auto "> !--Treeview Here--! </div>
"Bart Schelkens" <BS********@hot mail.com> wrote in message news:%2******** ********@TK2MSF TNGP10.phx.gbl. .. Hi,
i'm using the treeview from the Microsoft.Web.U I.Webcontrols.T reeview.
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.
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********@hot mail.com> wrote in message
news:e3******** ******@TK2MSFTN GP10.phx.gbl... Thx it works just fine now
"Steve Flitcroft" <as*******@hotm ail.com> wrote in message news:Oe******** ******@TK2MSFTN GP10.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:6 00px;width500:p x;overflow:auto "> !--Treeview Here--! </div>
"Bart Schelkens" <BS********@hot mail.com> wrote in message news:%2******** ********@TK2MSF TNGP10.phx.gbl. .. Hi,
i'm using the treeview from the Microsoft.Web.U I.Webcontrols.T reeview.
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.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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,
System.Windows.Forms.MouseEventArgs e)
{
currentNode = MyTreeView.GetNodeAt(e.X, e.Y);
}
|
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 could have one visible column but a
couple of invisible columns with supporting data (e.g. a db key). If someone
clicks on the description, one can get that key from the hidden item.
Is there some way I can do this using the treeview control? I...
|
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 get it to display the scrollbars when I resize my screen?
I want to see those scrollbars also when I resize my screen so that I don't
see the entire treeview.
|
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 link!
I tried doing :-
'nodeProd.Text = <a href ="">" & rowProd("ProductName") &"</a>
but no LUCK
Any ideas?
|
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 Ctrl-C or what ever to clear out all
items retrieved in the various nodes, get rid of all the pluses, and start
again at the top or from scratch. How would I do this?
Also, I read somewhere that using Begin Update will speed things up where...
| |
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 mouse button and THEN
right-click (the context menu then displays an item IAW a Tag value
previously assigned to each node). If you only use the right mouse button,
however, it appears that the given node is selected but this is not the
case; it is...
|
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 sub-class ?
If no, any related information/reference ?
Thanks a lot
|
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 child node or a leaf node then a
DataGrid is populated based on the node's ID property. If I expand a node
then the DataGrid is not populated. This works fine. The problem is that
this doesn't work if I collapse the tree. If I collapse the tree...
|
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 route to take. That
is:
1. Refreshing the tree from the client side (without a post back - this is
important) - better yet, refreshing a specific node and all of it's children.
I've looked at the TreeView.js file that is pulled out of the...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |