We have implemented localized validation attributes which inherit form Data Annotations attributes and pull required validation strings from resource DLLs. For example, we have [RequiredLocalized] which inherits from RequiredAttribute. Everything works fine with MVC form fields, we get translated error messages when validating client-side and server-side (when JS turned off).
But when editing field values in Kendo Grid, our own RequiredLocalized validator does not seem to work client-side - invalid data get sent to the server, then the MVC validates the model and rejects it, and only then the error is returned to client.
How do we tell Kendo Grid to use our RequiredLocalized attribute in Javascript the same way as it uses [Required] ?
Also we see that Telerik Javascript files have some hard-coded validation strings, like "must be a number". Hiow do we localize these?
But when editing field values in Kendo Grid, our own RequiredLocalized validator does not seem to work client-side - invalid data get sent to the server, then the MVC validates the model and rejects it, and only then the error is returned to client.
How do we tell Kendo Grid to use our RequiredLocalized attribute in Javascript the same way as it uses [Required] ?
Also we see that Telerik Javascript files have some hard-coded validation strings, like "must be a number". Hiow do we localize these?