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

Possible Bug: Using a scrollable treeview

P: n/a
I programmatically 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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.