Search code examples
extjsextjs4extjs4.2

How to scroll to a specified record in a grid


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?


Solution

  • Try

    grid.getView().scrollRowIntoView(rowIndex)