New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blazor ValidationMessage Failing #12000
Comments
Does the following not work?
What's the reason why you needed to use |
Hey Steve. Not that I'm seeing. With the array accessor I'm seeing:
|
Oh wait, yeah, it can't work. The expression you're providing is to populate a So instead what you need to do is use a data structure where you have reference-typed objects with fields/properties. For example, <ValidationMessage For="@(() => VM.Connector.ConnectorDetails[0].DetailsText)" /> This will work because |
Thanks for the response! That's unfortunate as I'm not trying to create an object with a property of 1 just to support this situation. Since it can bind successfully to |
@SteveSandersonMS Is there anyway I can create a unique
Both just register as Thank you! |
I have a setup like below:
With
ValidationMessage
I'm getting the following error:ArgumentException: The provided expression contains a MethodCallExpression2 which is not supported. FieldIdentifier only supports simple member accessors (fields, properties) of an object.
How can I support displaying the error message for the given element in the array?
The text was updated successfully, but these errors were encountered: