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
40
Synchronize vertical scroll bar with explorer scroll bar.
posted

I have a requirement in which i have to synchronize the ultrawebgrid vertical scroll bar with explorer scroll bar.

For example when an instance of scroll bar occur , we need to lock the scroll bar together regardless of which scroll bar is being used.

Please advice.

Please reply ASAP and contact me if you need clarification on my request.

  • 37874
    posted

    Hi Vipul Negi,

    It has been some time since your post but in case that you still need assistance I will be happy to help.

    I have been reading through your post and I can suggest that you use the following javacsript function to move the two scrollbars at the same time:

            function autoScroll() {

                //Gets the grid and the wrapping div element

                var grid = igtbl_getGridById('UltraWebGrid1');

                var divElement = grid.DivElement;

                //On scrolling one of the scrollbars, the other is also moved

                $(divElement).scroll(function () {

                    $(window).scrollTop($(divElement).scrollTop());

                });

                $(window).scroll(function () {

                    $(divElement).scrollTop($(window).scrollTop());

                });

            };

     

    Please let me know if this helps.