请问大侠怎样才能实现treeview动态添加后保持滚动条添加前( 不刷新)的位置

解决方案 »

  1.   

    object.scrollIntoView( [bAlignToTop])bAlignToTop Optional. 
    Boolean that specifies one of the following values: 
    true Default. Scrolls the object so that top of the object is visible at the top of the window. 
    false Scrolls the object so that the bottom of the object is visible at the bottom of the window.  
      

  2.   

    例如你的treeview的id为t1t1.scrollIntoView(true )
    -----------------------
    没有最好,只有更好!
    http://www.crossgo.com
      

  3.   

    bAlignToTop Optional.
    bAlignToTop 可选项
    Boolean that specifies one of the following values:
    Boolean类型值,指定下列值之一:
    true Default. Scrolls the object so that top of the object is visible at the top of the window.
    true 默认。滚动对象,使对象的顶端定位于窗口的顶端。
    false Scrolls the object so that the bottom of the object is visible at the bottom of the window.
    false 滚动对象,使对象的底端定位于窗口的底端。