📌  相关文章
📜  Telerik 网格数据自动滚动到反应中的特定记录 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:25.395000             🧑  作者: Mango

代码示例1
//    bind to 'change' event
function onChangeSelection(e) {

    //    animate our scroll
    this.element.find(".k-grid-content").animate({  // use $('html, body') if you want to scroll the body and not the k-grid-content div
        scrollTop: this.select().offset().top  //  scroll to the selected row given by 'this.select()'
     }, 400);
}