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 a model with a field containing a regex validation:


    public partial class NetworkAddress

    {

        public NetworkAddress()

        {

        }

        public int Id { get; set; }


        [RegularExpression(@"^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$", ErrorMessage = "Ip address must match the xxx.xxx.xxx.xxx format")]

        public string IpAddress { get; set; } = "";

    }


I use this in a EditForm component to create new instances, and the validation works well. The created instances are put in a list, and this list is displayed through a Datagrid to allow the user to edit them here. Without the Regex attribut, this works well, but when I put the attribut on te "IpAddress" field, nothing happend when I want to save the edited row. 

I just set the AllowDeleting="true" in my grid and here is the column definiton:

<GridColumn EditType="EditType.DefaultEdit" Field=@nameof(NetworkAddress.IpAddress)/>


Thank you in advance,


Loïc