Moving the ScrollBar To the Selected Node In A TreeView Control
        Posted  
        
            by Nick LaMarca
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Nick LaMarca
        
        
        
        Published on 2010-03-19T16:24:14Z
        Indexed on 
            2010/03/19
            22:31 UTC
        
        
        Read the original article
        Hit count: 177
        
I have a treeview control where I am dynamically selecting a node depending on user interaction. when a node is selected I want to be able to have the scrollbar go to the location of that selected node in the tree. The scrollbar is simply made by overflow:auto in the div tag where the treeview is located. Can someone give me some detailed code to accomplish this? Thanks in advance.
© Stack Overflow or respective owner