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.
The Grid's setEditorField is initializing funky
I am seeing some weird behavior with the grid's setEditorField function in Vaadin 7.6.6. In short, when trying to set the editorField in the constructor, nothing happens. However, if I add a selection listener to the grid, and call setEditorField in the selection event, everything works fine. Why? Does the editorField need to be set in some order? I have disabled everything else in the Grid to make sure there are no strange collisions, but I am coming up with nothing.
In other words, adding this in my constructor, it does not work:
grid.getColumn("myCol").setEditorField(myColEditField);
But, this works fine:
complexGrid.addSelectionListener((SelectionEvent.SelectionListener) selectionEvent -> {
grid.getColumn("myCol").setEditorField(myColEditField);
});
... has anyone else experienced this?