Author Topic: Link scrolling  (Read 1951 times)

Akihiro Inoue

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 32
    • View Profile
Link scrolling
« on: March 19, 2018, 11:19:52 am »
Hi,support.

When vertical scrollbar of Master grid is moved,
the vertical scroll bar of child grid is moving.
this behavior is correct.

But the same is not working for vice-versa.
That is when vertical scrollbar of Child grid is moved,
the vertical scroll bar of Master grid is not moving.

Need to make it work for Child grid vertical scroll bar also.
So when vertical scrollbar of Child grid is moved,
the scrolling of Master grid should also move.

https://paramquery.com/pro/demos40/scroll

Please provide me suggestion on this.


paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6298
    • View Profile
Re: Link scrolling
« Reply #1 on: March 19, 2018, 08:48:37 pm »
It would be done in similar way.

listen to scroll event of 2nd grid scrollbar and scroll 1st grid by synchronizing its cur_pos.

To prevent infinite loop, check cur_pos of 1st grid, scroll it only if cur_pos is different from the ui.cur_pos in scroll event.

Akihiro Inoue

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: Link scrolling
« Reply #2 on: March 27, 2018, 11:17:45 am »
Thank you team.
We were able to solve a issue.