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.

Table - Disable Lazy Loading (I think that's what it's called)

Dan Golob
6 years ago Jun 23, 2015 6:47pm
Marko Grönroos
6 years ago Jun 23, 2015 7:09pm
Dan Golob
6 years ago Jun 23, 2015 7:27pm
Dan Golob
6 years ago Jun 24, 2015 12:46pm
Dan Golob
6 years ago Jun 24, 2015 12:53pm
Marko Grönroos
6 years ago Jun 24, 2015 3:44pm

Yeah, a table can't be very huge without lazy loading, that's why lazy loading is normally used. And Vaadin components have much bigger rendering performance footprint than plain text.

You can use setCacheRate() to adjust how much Table caches rows. When I come to think of it, setting it to a huge value is another way to disable lazy loading.

The issue is really a tradeoff between server latency and rendering speed.

Note that Grid should be much faster to render, although it doesn't support editable mode, only row-based editing. It is possible to make a custom renderer to enable editing in all rows, and I think some people have done that, even though it requires client-side coding.

Dan Golob
6 years ago Jun 24, 2015 4:42pm