Perform an action on validation result

A G

I'm trying to accomplish a simple task where upon validation result (failed or passed) I want to perform some action, for example set CSS style to a corresponding text element. I want to do this per form element. Is there a way to do this? Is there as event that one can subscribe to ,like onValidationComplete(validation_result) ?

Rosen

I'm afraid that currently there is not such event. However, depending on your scenario you may manually trigger the validation (via the validate method) and to take the appropriate action to style the failed elements.
Also by default a CSS class (k-invalid) is applied to the input elements which does not pass validation. Thus, you may override it in order to customize the appearance of the inputs. Here you can find a small sample which illustrates this.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.