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
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/framework/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)