ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: Akihiro Inoue on March 19, 2018, 11:19:52 am

Title: Link scrolling
Post by: Akihiro Inoue 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.

Title: Re: Link scrolling
Post by: paramvir 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.
Title: Re: Link scrolling
Post by: Akihiro Inoue on March 27, 2018, 11:17:45 am
Thank you team.
We were able to solve a issue.