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
20
Syncronize scrollbars
posted

Hello.

I have to UltraTrees on a form. I want to syncronize scrollbars, so when I scroll in the left UltraTree, right UltraTree scrolls automatically to the same scroll value.

I cannot find how to set the scroll value.

Thanks!

  • 4219
    posted

    Hi,

     

    I can suggest you the following approached based on the following forum posts http://forums.infragistics.com/forums/p/46636/250384.aspx# :

     

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

            {

                if (e.ScrollBarType == Infragistics.Win.UltraWinTree.ScrollBarType.vertical)

                {

                    ultraTree2.TopNode = ultraTree1.TopNode;

                }

            }

    Where both trees have the same datasource.

    Let me know if you need any additional help.

     

    Regards,

    Stefaniya