I have a Blazor grid for which I populate an option dropdown. I use the OnAdd="@AddHandler" to add a new row. There are two other columns in the grid that have calculated values based on Name grid and 2 others, but once the option is populated, the only way for the calculations to work is to select another name, then come back to the first value. Is there a way to default the value to text that says "Select name" and make the user choose something?
<EditorTemplate>
@{
CurrentlyEditedRecord = context as Record;
<select @bind="@CurrentlyEditedRecord.Name">
@foreach (var item in Products)
{
<option value="@item">@item</option>
}
</select>
}
</EditorTemplate>