I am using xamgrid
In the metadata.cs I have decorated the attributes with [Required]/ [StringLength()] validations
The xamgrid shows the validations correctly, but the user is still able to go to the next row, how can i prevent that,
There are almost 7-10 fields which use the defaultvalidations like required/range/stringlength
Any advise, for the workaround to work should I write own validator. It works fine if I use normal datagrid
I am using xamgrid for additional features like deferredscrolling and all.
Yea, so since you're using the default validation for Ria, you're not going to be able to work around it. You'd really only be able to workaround it if you implemented the validation interfaces on your data object yourself.
-SteveZ
Thanks Stephen
What will be the change in the code, The validation used is the default validation
i.e [StringLength(4)] public string CityName { get; set; } in the metadata.cs
Where should i try to revalidate ?
Sorry if I have not understood
Where else will the change
Hi,
To get around this, basically, you'd need to try and trigger the validation, every time an invalid value tries to get set on your object, not just the first time.
Thanks for the reply
Is there any workaround currently for this issue?