-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi all,
i have two Grids and i will sync the second grid based on the first grid. Both Grids have the same number of rows. When i scroll the first grid vertical then the second grid automatically scroll to the same position. Is this possible?
Regards Andy
Hi Andy,
It is possible to sync two grids on vertical scrollbar. You can listen onScroll event on second grid and sync the scrollTop value of first grid.
Refer to the sample on zkfiddle.
Hello andij62,
I have never seen the behavior that you describe.
Could you please post your configuration details, test environment, as well as a code sample so that i can check it out in detail?
Best Regards,
Darksu
Hello Darksu,
after problems with Grids with fixed cols on the mac and iPad (Safari and Firefox don't scroll horizontal by fixed cols) i had the idea 2 grids display side by side. One Grid shows Date and Time and the other Grid the Data. If the Data-Grid scrolls horizontally the Date and Time Grid is always visible. The Problem is when the Data-Grid scrolls vertical, the Date and Time Grid must also scroll vertical in the same distance but automatically.
I do not know if my idea is good and how I could make it.
Regards Andy
Hello andij62,
Based on the following url you could apply the same method for a grid and adjust it accordingly.
http://stackoverflow.com/questions/2146874/detect-if-a-page-has-a-vertical-scrollbar
Best Regards,
Darksu
Asked: 2015-01-06 16:17:47 +0800
Seen: 37 times
Last updated: Jan 18 '15
andij62 is it possible to work with paging?
chillworld ( 2015-01-09 12:35:52 +0800 )edit