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
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