Describe the bug
When trying to update the data of a Grid with virtual scrolling enabled to a new one with a different number of items, and then use the scrollTo() method to programmatically scroll the component, it is displayed as an empty Grid with no records.
Describe the bug When trying to update the data of a Grid with virtual scrolling enabled to a new one with a different number of items, and then use the scrollTo() method to programmatically scroll the component, it is displayed as an empty Grid with no records.
To Reproduce
Expected behavior The Grid should not be displayed as empty and should be scrolled to the defined scroll position.
Workaround Execute the scrollTo() method in a setTimeout() function:
setTimeout(() => { grid.scrollTo({row: 0, column: 0}); })
StackBlitz example with workaround: https://stackblitz.com/edit/angular-1dooxc-xh3gmt