This question is locked. New answers and comments are not allowed.
Is it possible to supply a display value for null values in the MVC grid while still maintaining the correct editor/filter, etc.
I know the below method does not exist but I was wondering if there was a way to do something similar. I don't want to convert the value to a string in my controller because I want the filter for this column to still be a date picker. If the date is null, though, I want to see the text "N/A" instead of being blank.
I was thinking something along the lines of:
I know the below method does not exist but I was wondering if there was a way to do something similar. I don't want to convert the value to a string in my controller because I want the filter for this column to still be a date picker. If the date is null, though, I want to see the text "N/A" instead of being blank.
I was thinking something along the lines of:
.Columns(columns =>
{
columns.Bound(c => c.DateColumn).NullValue("N/A");
});