I have a RadzenTemplateForm
<RadzenTemplateForm Data="@model">
<DataAnnotationsValidator />
<div class="row">
<div class="col-md-4 align-items-center d-flex">
<RadzenLabel Text="Name" />
</div>
<div class="col-md-8">
<RadzenTextBox @bind-Value="@model.Name" AllowClear="false" Style="width: 300px;" Name="Name"></RadzenTextBox>
<ValidationMessage For="@(() => model.Name)" />
</div>
</div>
<RadzenButton Click="Save"> Save Changes </RadzenButton>
</RadzenTemplateForm>
If the name field is empty, the form will still submit and then a person with a blank name will be created. Why is this happening?
I've tried using RadzenRequiredValidator, the form still submits when the textbox is empty...