I have several Create/Edit forms generated with radzen. I added on some of them RadzenRequiredValidators to my DropDowns/DropDownDataGrid and in some cases they work and in others they do not. I have checked that everything is inside a RadzenTemplateForm and that the submit fuction is Ok and I did not found anything wrong. In some of those forms there are both TextBox and DropDowns and the TextBox Validate is working fine and the DropDown Validate is not.
Does someone have any idea on how to solve this problem?
The int always has a value (0) which is why the required validator won't work (there is always a value). We will extend the CompareValidator to support comparison operators and you would be able to use it and compare if the value is not 0. We will add support for that in one of the future Radzen releases.
Now you will have to check if the value is not 0 when you Invoke the data source method (use the Condition property e.g. ${packaginggroupdetail.PackagingId != 0}
With dropdowns with integer IDs, a simpler solution I have found is to replace the RequiredValidator with a NumericRangeValidator and set the Min value to 1.