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!


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,