Welcome to the Blazor feedback portal. We’re happy you’re here! If you have feedback on how to improve the Blazor, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
Hi,
I have the following setup:
Datagrid has edit mode: Mode="EditMode.Dialog", and an edit Template for the edit dialog.
Now, when I add a record, everything works fine, but, if I initialize new record via an event, like:
private void ActionBegin(ActionEventArgsargs)
{
if (args.RequestType == Syncfusion.Blazor.Grids.Action.Add)
{
args.Data = new Site { Tenant = this.Tenant };
}
}
there are problems. Namely, the properties that have a [Required] attribute set, cannot be validated although they should:
I should mention that MinLength and MaxLength attributes work fine, only the required attribute somehow doesn't know that there is data in there. Again, only happens when I initialize the object via an ActionBegin event.
The input control in the snip above is SfTextBox.