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.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Total count in Vaadin Table
Hi
Is it possible to show the total number of rows in vaadin table ?
As in combobox.
Quick ref :
http://demo.vaadin.com/sampler/#ui/grids-and-trees/table
http://demo.vaadin.com/sampler/#ui/data-input/multiple-value/combo-box
If you just want the total number of entries available, you can ask the underlying container (don't know if it works if you have some sort of lazy loading container but I don't see any reason why not)
Table t = ...;
t.getItemIds().size();
t.getContainerDataSource().getItemIds().size();
Keep in mind that using container filtering may/will mess up that number as the number returned may be the "visible" count (not to be confused with "number of rows currently shown").
See also:
https://vaadin.com/api/com/vaadin/data/Container.html#getItemIds()
But I was looking for a way to show in UI same as combobox.(A tooltip at the bottom)