Grid Scroll Synchronization
You can synchronize horizontal and vertical scrolls to scroll multiple grids simultaneously.
When the top row of the grid changes, the onTopIndexChanged event is used, and when horizontal scrolling is performed, the scroll of the grid you want to synchronize is moved to a function inside the onLeftPosChanged event.
masterGrid.onTopIndexChanged = function (grid, idx) {
detailGrid.setTopItem(idx);
}
detailGrid.onTopIndexChanged = function (grid, idx) {
masterGrid.setTopItem(idx);
}
masterGrid.onLeftPosChanged = function (grid, pos) {
detailGrid.setLeftPos(pos); }
detailGrid.onLeftPosChanged = function (grid, pos) {
masterGrid.setLeftPos(pos);
}