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!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

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(ActionEventArgs args)

    {
        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:


Empty


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.