我想滚动到最后一行或选定项目或行索引
我试过一些案例:
grid.setScrollTop(rowIndex); // not working
grid.getView().focusRow(rowIndex);// not working
// not working
var idx = this.getStore().indexOfId(rowIndex);
var rowEl = this.getView().getRow(idx);
rowEl.scrollIntoView(this.getGridEl(), false);
他们都不工作,我怎么能这样做,谢谢
编辑:
我有一个窗口,包括一个网格面板,当我添加一个新的项目,我想滚动窗口,以最后谢谢
编辑2:
请看我例子:**http://jsfiddle.net/h9Dy9/**当我添加一些新项目时,必须将窗口滚动到最后一个项目或选择项目。
1条答案
按热度按时间ttvkxqim1#
最后一行,是指网格的底部,对吗?
我试着用这个,它很管用:
我从Grid -scrollTo bottom找到这个