当使用虚拟滚动和行数变化时,滚动条的拇指可能保持在可用数据以下。
设想情况:
问题:
问题:
发布于 2018-01-25 22:19:52
如果它是角应用程序,您可以使用以下代码:
let gridContent = this.elRef.nativeElement.getElementsByClassName('k-grid-content')[0];
if (gridContent) {
gridContent.scrollTop = 0;
}其中,elRef是使用consturctor传递的:
constructor(private elRef: ElementRef) { }https://stackoverflow.com/questions/44304846
复制相似问题