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.
Click Listener in Grid HeaderRow
Hello Vaadin experts,
I have a Grid and I would like to put a ClickListener in the HeaderRow but I can't find out how. I tried adding an ItemClickListener in the grid but it only listens to clicks done in the normal rows, not the header.. Isn't there a
HeaderClickListener like there is in the Table?
Thanks in advance!
Hi,
I guess one way around it would be like this: since the Grid supports Components in the header row, you could just add a Layout in each HeaderCell and use a LayoutClickListener to get the same functionality.
Hope this helps,
Olli