I’m using Vaadin 24 Grid with an editor and a Select field.
Suppose the valid options are:
A
B
C
However, due to bad data in the database, one row contains:
D
But when I enter edit mode, the Select becomes blank, and the dropdown only shows A, B, and C.
What I would like to do is:
Still display D in the edit field
Highlight the field (for example red) to indicate that the value is invalid
Let the user choose a valid value (A, B, or C) to fix the data
Is it possible to show a value in the editor even if it is not part of the dropdown items?
So let’s say my table has a getCustomerOptions method, and it returns Customer A, B, and C as valid options.
However, due to a bad data migration, some records in the Customer column contain “D”, “E”, or “F”.
Should I add these invalid values to the dropdown list as well?
The user would see D, E, and F as options, but they would not be able to save them.