How to scroll to a specified record in a grid

梦想与她 提交于 2019-12-12 16:24:44

问题


How can we scroll to a defined record (record or index) in a grid?

Using a buffered renderer this is quite easy by calling:

grid.view.bufferedRenderer.scrollTo(0, false, callback, scope);

but how can this be done with a default renderer?


回答1:


Try

grid.getView().scrollRowIntoView(rowIndex)


来源:https://stackoverflow.com/questions/23421508/how-to-scroll-to-a-specified-record-in-a-grid

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!