I've been working with the UI-Grid plugin in Angular, found at , to display data. However, I've come across a couple of issues that I'm having trouble solving.
My search form includes parameters that fetch results from a database and populate the grid. After performing a search, viewing the data, and scrolling, if I do another search, the existing data is wiped out and replaced with new data on the same grid. This has led me to notice two specific problems:
1) Following a second database search, the scroll position isn't reset to the top, and without utilizing a new directive like cellNav for scrollTo functionality, I'm unsure how to address this issue.
2) Additionally, it appears that infinite scrolling stops functioning properly after conducting a new search.
It seems like refreshing the grid should resolve these problems, but I can't seem to find a way to achieve this. Any suggestions would be greatly appreciated.