$(grid1.getEl()).find(".mini-grid-rows-view").on("scroll", function (e) {
var top = $(e.currentTarget).scrollTop();
scrollTop(grid2, top);
})
$(grid2.getEl()).find(".mini-grid-rows-view").on("scroll", function (e) {
var top = $(e.currentTarget).scrollTop();
scrollTop(grid1, top);
})
function scrollTop(control, top) {
$(control.getEl()).find(".mini-grid-rows-view").scrollTop(top);
} 作者: Justal 时间: 2019-3-5 18:11:49
dforce 发表于 2019-3-5 17:53
$(grid1.getEl()).find(".mini-grid-rows-view").on("scroll", function (e) {