Allow Empty Emailaddress

0 Answers 131 Views
Grid ValidationMessage ValidationSummary
W.
Top achievements
Rank 1
W. asked on 12 Oct 2021, 06:05 AM | edited on 12 Oct 2021, 06:25 AM

SOLVED

Hi,

i've a grid where my email field isn't shown (must not be) , when editting the popup cannot be save due an error of a invalid EmailAddress.

Field isn't requierd, so an empty field should possible , i thought.

Model:

[MaxLength(150)]
[EmailAddress]
 public string emailaddress { get; set; } 

i used : https://demos.telerik.com/blazor-ui/grid/custom-editor as starting point 

database wasn't correct

 

 

No answers yet. Maybe you can help?

Tags
Grid ValidationMessage ValidationSummary
Asked by
W.
Top achievements
Rank 1
Share this question
or