|
|
|
|
|
|
|
|
---|---|---|---|---|---|---|---|
Nancy | Davolio | Sales Representative | Ms. | 12/8/1978 | 5/1/2005 | ||
Andrew | Fuller | Vice President, Sales | Dr. | 2/19/1965 | 8/14/1992 | ||
Janet | Leverling | Sales Representative | Ms. | 8/30/1985 | 4/1/2002 | ||
Margaret | Peacock | Sales Representative | Mrs. | 9/19/1973 | 5/3/1993 | ||
Steven | Buchanan | Sales Manager | Mr. | 3/4/1955 | 10/17/1993 | ||
Michael | Suyama | Sales Representative | Mr. | 7/2/1981 | 10/17/1999 | ||
Robert | King | Sales Representative | Mr. | 5/29/1960 | 1/2/1994 | ||
Laura | Callahan | Inside Sales Coordinator | Ms. | 1/9/1985 | 3/5/2004 | ||
Anne | Dodsworth | Sales Representative | Ms. | 1/27/1980 | 11/15/2004 | ||
Our Blazor Grid uses the standard DataAnnotationsValidator to validate user input (based on data annotation attributes defined in an edit model). Once a user removes focus from data editors or attempts to save an edited row, editors are outlined in colors and display validation icons: green for valid values, and red — invalid values. Hover the mouse pointer over an error icon to show the corresponding error message in the title.
You can implement your custom validator components and declare them in the CustomValidators template. To disable input validation, set the ValidationEnabled option to false
.
Note: You should not rely on form validation alone to secure your Blazor-powered app. Form validation is designed to improve usability. A threat actor can bypass validation and send malicious data to the server. To minimize security related threats/risks, you must validate user input using multiple strategies. Refer to the following topic for more information: Validate User Input.