Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Grid 7.4.7: replaceComponent on it, scrolls to top when I go back

Dino Fancellu
7 years ago Jun 04, 2015 2:59pm
Dino Fancellu
7 years ago Jun 12, 2015 5:20pm
Teemu Suo-Anttila
7 years ago Jun 15, 2015 7:32am

Hi,

It indeed looks like the Grid scrolls to the top. And I think that it is an issue with the lazy loading of data. However I can't be entirely sure. The backing widget in the client side is called Escalator, and we do have test that detaching and reattaching does not change the scroll position. It might be that in some case the Grid is handling the Escalator in a wrong way in some cases. We will need to investigate this a bit more.

I opened a bug ticket for this ( https://dev.vaadin.com/ticket/18271 ).

//Teemu

Dino Fancellu
7 years ago Jun 15, 2015 12:57pm
Dino Fancellu
7 years ago Jun 26, 2015 12:22pm

Still there for 7.5.0

Would be nice if someone fixed this. Its really bad UX.

Brian Siim Andersen
5 years ago Oct 10, 2016 8:24am

We're having the exact same problem and made a post some weeks ago (https://vaadin.com/forum#!/thread/14036585). This is a serious issue for us. Any chance that this will be fixed any time soon?

Ravi Cheema
5 years ago Dec 09, 2016 5:14pm

I too agree that this is a major issue for us. We're creating complex business applications based around the grid component and utilising tabsheet, when switching between tabs the scroll position for the grid is reset. Its very annoying and inconsistent from the users' perspective.

Indeed, it's downright wrong, for example, in the grid - why are selected items perserved but the scroll position is not? 

Additionally, the Grid API is inconsistent, it gives us the ability to set scroll position but gives us no ability to get the current scroll position or current scroll item.

Please make https://dev.vaadin.com/ticket/18271 a priority.
 

Tatu Lund
5 years ago Mar 31, 2017 7:22am