dotnetcore / BootstrapBlazor

A set of enterprise-class UI components based on Bootstrap and Blazor
https://www.blazor.zone
Apache License 2.0
2.46k stars 295 forks source link

recommended to add fluent validation to the ValidateForm component #279

Closed dsdruby closed 1 year ago

dsdruby commented 1 year ago

recommended to add fluent validation to the framework

sometimes, the default data annotation validator provided by .net core is not powerful enough to validate the complex model with collections and dynamic model. I tried to adopt the Blazored.FluentValidation to my application. Since ValidateForm has already included the data annotation validator, there is no way to disable it.

and I tried to use back the original EditForm component. It works fine with all .net blazor compoents but not for the input components provided by your blazor framework. The validated items such as datetimepicker, checkbox are not able to display properly with valid or invalid css class. it would be great if you can include it. Thanks!

ArgoZhang commented 1 year ago

@dsdruby hi. thanks for the suggestion. could you provide a sample code?