Vaadin Grid - resize column but have a minimum clumn width

As you can see in the attached image, the “Mail Server” column is resizable.



The problem I have is, that a user can resize the column to both ; minimize it and maximize it.
What I want to do is to let the user increase the column width but not decrease it.
I thought that setMinimumWidth(200) would do the trick, but either it does not work or I got it completly wrong.

Can s/o pls. shed a light on it and tell me, if this is possible.

27722.jpg

Have you tried with something like
grid.getColumn(“propertyId”).setMinimumWidth(200)
?

Hi Alejandro. Yes, I have tired this without success.

I ended up with some CSS that I apply

.nolessthan {
width: 310px;
min-width: 300px;}

grid.setCellStyleGenerator(new CellStyleGenerator() {
private static final long serialVersionUID = -8832838853469882824L;
@Override
public String getStyle(final CellReference cellReference) {
if (cellReference.getPropertyId().equals(CELL_SOURCESERVER)
|| cellReference.getPropertyId().equals(CELL_USERNAME)) {
return “nolessthan”;
} else {
return null;
}
}
});

This does the trick.