Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Add button to table by QueryContainer
Hi to all,
I need to add three Button over each row of my table to manage each record by that buttons: using IndexedContainer I've no problem to do that but performance is not that I want.
I've to load about 100.000 record from MySql and using QueryContainer is faster, but I can't add the button using this container.
How can I add three Button in three new Coloumn for each record using QueryContainer?
It work perfectly and very faster :lol:
Thanks a lot! ;-)
Have a nice day
Ah, a last question. How can I order my row by coloumn value using QueryContainer?
The QueryContainer does not implement Container.Sortable, so the table will not show the sort arrows for it etc. As the query can be an arbitrary (and potentially complex) SQL query, it would be quite hard to implement sorting on top of it reliably.
If something else controls the sorting, you could simply generate other queries and switch the container to a new instance. However, then you might also need to take care of the selection etc.