flow
flow copied to clipboard
DataProvider refreshAll effect is too intrusive
If a user is scrolling a grid and a refreshAll is called, the grid is emptied and the use loses its scroll position. Also, if there are component-renderers they disappear for a moment while the grid is refreshed.
This is quite intrusive, especially if the refresh is coming from a push event and the user isn't aware of it.
Calling refreshAll should be smoother, e.g.
- add new items coming from the refresh
- remove items missing from the refresh
- update items already present on the list
This way the list isn't emptied and entirely reconstructed, which could be quite intrusive for the user (read: our users are lamenting this quite often).
Related concept outside Grid: https://github.com/Legioth/repeater/blob/master/src/main/java/org/github/legioth/repeater/Repeater.java#L256
Any update or workaround for this? How to remove a treegrid root item without losing scroll postion?
would be nice, yes!