Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
How to Scroll an UltraTree Contorl when Scroll another UltraTree.
posted

I have Two ultra Trees on a window form. Both tress shows some Info. Now I want when I scroll one tree another tree should also scroll.

Please suggest me

Thanks in Advance.

Parents
No Data
Reply
  • 53790
    posted

    Hello Robin,

    Maybe one possible approach could be to handle Scroll() events of both controls and include the code below:

    private void ultraTree1_Scroll(object sender, Infragistics.Win.UltraWinTree.TreeScrollEventArgs e)

    {

        ultraTree2.TopNode = ultraTree1.TopNode;

    }

     

    private void ultraTree2_Scroll(object sender, TreeScrollEventArgs e)

    {

        ultraTree1.TopNode = ultraTree2.TopNode;

    }

    Please take a look at the attached sample for more details. Other approach could be if you are using ultraTree1.PerformAction(UltraTreeAction.ScrollDown, false, false);

    Regards

    UltraTreeSyncScroll.zip
Children