Radzen dropdown validation is not working

Hi the validation in the DropDown is not working although it works on the other compponents.
I tried to use RadzenTemplateForm but I faced errors.

Customer Order.CustomerId) />
code { private void Save() { if (editContext.Validate()) { dialogService.Close(true); } } }

Check if your case is similar:

1 Like

We find the issue.
the problem was with the defult valueof the binding varibale which is decimal, when I did not choose from the dropdown it assigns 0 to Order.CustomerId therefor the validation is successful. and we have added RangeAttribute to a void the defult value.
Is there another silation ?

You can set DefaultValue as described in the thread I posted.

1 Like