We are evaluation the blazor controls from telerik and would like to know few things.
1. Is it possible to implement fluent validation as part of the object validation as done here? https://blog.stevensanderson.com/2019/09/04/blazor-fluentvalidation/
I tried doing this but it would not catch the validation
<EditForm Model="@selectedBuildingModel" OnValidSubmit="@Save">
<FluentValidator TValidator="BuildingModelValidator" />
<div class="form-row">
<div class="col">
<TelerikTextBox @bind-Value="@selectedBuildingModel.Name" Label="First Name"></TelerikTextBox>
<ValidationMessage For="@(() => selectedBuildingModel.Name)" />
</div>
</div>
<div class="form-row">
<ValidationSummary />
<TelerikButton Icon="save" Primary="true" ButtonType="@ButtonType.Submit">Save</TelerikButton>
<TelerikButton Icon="cancel" OnClick="@ClearSelection" ButtonType="@ButtonType.Button">Cancel</TelerikButton>
</div>
</EditForm>
public class BuildingModelValidator : AbstractValidator<BuildingModel>
{
public BuildingModelValidator()
{
RuleFor(x => x.Name).NotEmpty().MaximumLength(5);
}
}
2. When will the upload control be available (even if its insiders, we just wanna see how it works)?
Thank you