Ag-grid vertically scrolls the grid

Hi,

I programmatically change the selected row by using the selectedRows attribute.
I would like then to vertically scrolls the grid until the provided row index is inside the visible viewport.

It seams that the callback that I am looking for is called

ensureIndexVisible( index: number, position: string)

JavaScript Data Grid: Grid API (ag-grid.com)

but i do not see the reference.

Can you please help me?

Thank you!

Hello @davidpsq,

This currently isn’t supported.

However, I am going to make a feature request to expose the api and columnApi for things like this.

Here, you can track this feature request:

You can also see the current feature request for the issue closely related to this topic: