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.
Listener like "lost focus"
Vaadin: 7.5.1
Based on: Reindeer theme
Hi!
I have my own form (GridLayout) with a Grid. I want to be able to select a row and when I click out of the grid the selected row should deselect (lost focus efect). I almost achieve this with a small problem.
When I click in the grid, addSelectionListener occurs and does select the row. But, as LayoutClickListener also occurs I have to catch this, because I want to deselect the row and desable one of the buttons. Besides, occurs before addSelectionListener.
At this point, with some "ifs" I can select the row, and deselect it by clicking twice outside the grid and that's what is bothering me. It is not "user frendly". There must be another way.
Also, I want to know how to show "boolean" column with checkbox.
Thanks!
Aleksander
Hi!
I'm still waiting for some help.
Thanks.
Aleksander
Hi Aleksander, in the soon-to-be-released Vaadin 7.6 you can add a BlurListener to Grid to easily achieve this.
Hi Johannes!
Ok, I will wait for Vaadin 7.6.
Thanks for the answer.
Aleksander