473,789 Members | 2,544 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Possible Bug: Using a scrollable treeview

I programmaticall y place a treeview inside a DIV tag to enable scrolling. I
am also dynamically populating the nodes in the ExpandNode event. Before
placing the treeview within the Div, everything worked properly.

After wrapping it within the div tag, I get the following behavior:

* If I click in any of the nodes that are visible without scrolling, they
expand properly
* If I use the arrow keys to scroll up or down to 'newly visible' node and
press the right arrow key, they expand properly
* if I use the mouse wheel to scroll to scroll up or down to 'newly visible'
node and click on a node they expand properly
**** if I grab the scroll bar slider or click on the scroll bar arrows to
scroll up or down to 'newly visible' node and click to expand a THE NODE
DOES NOT EXPAND.

weirder still, in all the above scenarios EXCEPT the last one my scroll
position stays where it should(On the expanded node) BUT in the last
scenario (When no event fires) my scroll position jumps to the top of the
tree. (Scrolling back down to where you were reveals that the node did not
expand - as well debugging does not enter the expand event)

Anyone have any ideas related to why I am seeing this? Besides that one
scenario - I am seeing the scrolling behavior I need with minimal effort.

Thanks
Rod Billett

Nov 17 '05 #1
0 1430

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

Similar topics

0
1046
by: Ramon Guerrero | last post by:
I'm not sure if this is a bug or not, but i just now noticed this today. When i was setting the properties for the control, i set the "Scrollable" property to false, but then later i realized i needed it and set it to true. When i ran the app i noticed that the horizontal scroll bar has the standard grey control look. Well when i expand some of the nodes until some are out of view, the horizontal and vertical scroll bars pop up and...
2
11180
by: Neeraj | last post by:
Hii , We have DB2 7.1 on windows and we are trying to use a type 4 driver to connect to the data base . I have included the db2jcc.jar in the class path . I am able to create a connection to the data base and also run SQLs with normal result set objects and get results but the momment I try to create a Scrollable result set as follows Statement Stat = connect.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
9
2023
by: Jim | last post by:
The below problem occurs randomly too, but I've managed to isolate a sequence of events when it always happens: I have two forms (say Form1 and Form2). Form 1 contains a TreeView control. A button from Form1 opens Form2 and a button in Form2 sends the user back to Form1. When the user goes back to Form1 from Form2, the TreeView control rebuilds the nodes incredibly slowly. You can see the progress, as the scroll bar slowly starts...
5
2160
by: Brian Henry | last post by:
Hello, I want to make a control that has a scrollable Gantt type display (not really one but will look similar to one) this is going to be custom drawn (i already have the drawing procedure completed for the overriden onpaint event) but the problem is this can be a very long scrollable viewport (part that scrolls inside the control) while the control will be relatively 800x600 in size)... i tried to do this with a panel scrolling inside...
0
1443
by: Andrew Ducker | last post by:
Nodes display as whitespace when scrollable is set to false, and more nodes are cleared and recreated than will fit into the space available. Steps to replicate: Create a form, with a button and a treeview that can display less than 12 Nodes at once . Put this code in button.Click treeView1.Nodes.Clear(); treeView1.Nodes.Add(new TreeNode("Test1"));
0
2558
by: Shadow Lynx | last post by:
When using ASP.NET 2.0's built-in TreeView on a page with <BASE target = "AnythingBut_Self"></BASE> in the HEAD, the expand/collapse buttons fail to function. The reason for this is that the hyperlinks generated for the expand/collapse buttons includes javascript code that will execute in the frame specified in the Base Target rather than the current document. To remedy this, TreeView should render a target="_self" attribute for each...
14
1602
by: Gerry Vandermaesen | last post by:
I'm having a problem with IE which displays my page footer partly beneath the viewable/scrollable window. It seems to calculate the bottom margin from the top of the div without looking at it's content. I'm not even using absolute positioning there so I'm not sure what the problem is. Any explanation for this and maybe some clean solution? http://users.skynet.be/fa800152/
0
2142
by: Kenneth McDonald | last post by:
Sorry for crossposting to several lists, but from what I can tell, what I want to do may involve several different areas of expertise. (None of which I have :-( ) I'd like to use Gecko as the UI for an application mostly implemented in Python. Ideally, I'd like to somehow come up with a Python module that wraps the Gecko, so that I can: 1) Create windows whose content is drawn by Gecko. 1) Dynamically manipulate what is shown by Gecko.
0
1468
by: liz0001 | last post by:
I have seen many examples on how to use the .load() function to load in static elements, but I am trying to load a dynamic element, specifically a scrollable. I have gotten it to the point where: 1) the scrollable will function if I directly view PageToLoad.asp in the broswer. 2) the static elements of the scrollable will load onto MainPage.asp. (i.e., it looks right) 3) the scrollable does not function as loaded on to MainPage.asp.
0
9511
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,...
0
10195
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10136
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9016
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, 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...
1
7525
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 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...
0
6765
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();...
0
5548
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4090
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2906
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.