RadzenDropDown throws object null reference exception within EditForm?

When I use RadzenDatePicker within the EditForm after entering or choosing the value, I am getting exception as below screenshot? what is it about? Validation should be fine as I enter a value.

    <EditForm  Model="@Model" OnValidSubmit=@OnSubmit>

        <RadzenDatePicker Name="FromTime" TValue="DateTime?" @bind-Value="@Model.FromTime"  TimeOnly="true" MinutesStep="5" DateFormat="HH:mm" ShowTime="true" />
         <RadzenRequiredValidator Component="FromTime" Text=@Localize["Start is required"] />

if i use RadzenTemplateForm, instead of EditForm, it works just fine. What is the difference?

All Radzen Blazor validator components require RadzenTemplateForm. They will not work without one.

1 Like