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.
I have asked the same question on LazyQueryContainer forum, but did not get any reply so far. Trying my chance here :-)
Vaadin Grid requires LazyQueryContainer to know the total number of objects before retrieving the objects.
Query implementations have @Override public int size() method. Grid calls this method to get the total number of objects to be displayed when container is set.
Size method requires the count and full table scan which is very costly in my case.
Instead of setting size immediately, I would like to change/update it in every loadItems call"@Override public List loadItems(int startIndex, int count) ".
What is the best way of notifying the container (and, eventually the Grid using that container) about the latest known size?
Is there any example of setting the size lazy as well?
Thank you in advance.Turgos