flow icon indicating copy to clipboard operation
flow copied to clipboard

DataProvider refreshAll effect is too intrusive

Open heruan opened this issue 6 years ago • 3 comments
trafficstars

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).

heruan avatar Oct 08 '19 13:10 heruan

Related concept outside Grid: https://github.com/Legioth/repeater/blob/master/src/main/java/org/github/legioth/repeater/Repeater.java#L256

Legioth avatar Apr 14 '20 13:04 Legioth

Any update or workaround for this? How to remove a treegrid root item without losing scroll postion?

randomuser1231232 avatar Apr 23 '24 10:04 randomuser1231232

would be nice, yes!

sirbris avatar Jul 03 '24 14:07 sirbris