VerticalLayout inside a table (ItemClickListener)

Hi,

I’ve a VerticalLayout inside a table (one of the columns contains VerticalLayouts). Is there any way to propagate the clickevent from VerticalLayout to table?

When i click the VerticalLayout i want to select the row within the table.

Thanks.

What I will probably do is to set the row itemid as data in the VerticalLayout (vlay.setData(itemid)) and use this to select the right row when the VerticalLayout is clicked ( table.select(clickedvlay.getData())).

BTW, what exactly are you trying to achieve.

Thanks Lawal,

It works.

I have 2 components(combobox and button) inside a VerticalLayout in a cell and just wanted to make selectable the dead spaces between the components (they have different sizes). Your solution solve the problem.

Thanks again.