I have a grid where rowData changes if the user refreshes the data. I need to scroll back to the same place (topScroll) where the user last scrolled before refreshing. In order to scroll to that point I need to detect the event where grid is ready every time after rowData changes. I see that onGridReady fires only once. Is there another event that I can use?
1
votes
1 Answers
2
votes
You should be able to use onRowDataChanged() event.
From the docs -
rowDataChanged The client has set new data into the grid using api.setRowData() or changing the rowData bound property.
Configure your gridOptions -
(rowDataChanged)="onRowDataChanged($event)"
Now you can implement your scrolling logic in onRowDataChanged