Hi,
I cannot seem to find any information on how to get custom MVC 4 unobtrusive validation to work on individual records within a grid (client-side). Server-side validation works correctly, but the client validation function is never called. For built-in MVC validations such as the [Required] attribute it works fine on both the server and client, but any validations I've created myself do not.
I know the grid uses Kendo Validator internally, but I am not sure how to register my custom validation functions with it, if it's not supposed to just pick them up from the ones I've registered with jQuery validate like so:
$.validator.addMethod('dategreaterthan', function(value, element, params)
{
return dateValidateCore('dategreaterthan', value, element, params, this.currentForm.id);
}, '');
I don't think there's anything wrong with my custom attribute since it works on standard HTML form elements, but I guess I need to do something differently to make Kendo aware of it.
Are there any examples of doing this that I've missed? The documentation doesn't seem to cover using this with the Grid at all.