Hi
I am using a grid with with a ForeignKey-column.
Grid is displaying data from a database table, column is a nullable foreign key to another database table.
The grid displays my data as expected, except the nullable foreign key column.
Column stays empty in view, but value can (and is) selected in edit mode.
Main table class is:
{ long Id, string Text, long? ForeignKeyId }
ForeignKey class is:
{ long Id, string Text }
Cannot change classes, cause they are created by EntityFramework from database.
If I do it anyway and make "long? ForeignKeyId" > "long ForeignKeyId", it will display values in grid, but cannot select null value then.
Can't find a data-option-label like in normal DropDownList as well.
So my question is, how to use a ForeignKey-Column in a grid with an intended possible null value?
Greets Robin