Vertical Scrollbar Synchronization

Posted by: kshitizkumar on 8 July 2019, 6:58 pm EST

    • Post Options:
    • Link

    Posted 8 July 2019, 6:58 pm EST - Updated 3 October 2022, 4:03 pm EST

    Hi,

    I have 2 grids in a form. One grid is simple with no splits. However second grid can have upto 7 splits. Now I want if I move vertical scrollbar placed at extreme right of the form to move the rows for both grids. Suppose if click down button on the vertical scrollbar, it should display second row in the first grid as well as second grid(on all splits). Is there a way to achieve that using any grid property or method ?

    Thanks in Advance!

    Kshitiz

  • Posted 8 July 2019, 9:28 pm EST

    Hi Kshitiz,

    Since these are two different grids, there is no direct method for this.

    However, you can refer to the attached sample which shows a workaround for this.

    Before you this, there are some caveats. There is no way to selectively cancel the scrolling so Grid1 can still be scrolled independently.

    Also, when Grid2 is scrolled by dragging there is some delay in scrolling for Grid1 (there is only Scroll event, which is fired when grid is about to be scrolled, the synchronization is only done after this event completes which introduces a delay).

    Sync_Grid_Scrolling.zip

    Regards,

    Jitender

  • Posted 15 July 2019, 5:56 pm EST

    Thanks Jitender for the elaborate solution. It works. Keep it up!

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels