What are differences and benefits of Model and EditContext for EditForm in Blazor?
in a project type of server side blazor, if we have custom validations in the form and want to validate the form, what is the best and optimized way to achieve that?
What are differences and benefits of Model and EditContext for EditForm in Blazor?
in a project type of server side blazor, if we have custom validations in the form and want to validate the form, what is the best and optimized way to achieve that?
Copyright © 2021 Jogjafile Inc.
You could check EditForm class and the description of Model property:
the decription of OnInvalidSubmit event:
The form would always be validated based on an EditContext,if you haven't bind the EditContext in your EditFrom,it would create one based on your Model
For custom validation,you could follow this document