Custom rules are not working in kendo validation

Lopamudra

I am trying to implement custom rules for validator, where we need to make certain input fields mandatory only when a check box is selected. But not able to get it to work, can you please point out if i missed out anything in below -

Rosen

I suspect that the issue is caused by incorrect configuration. There are multiple Validator instances created in the snippets you have pasted - each snippet creates a separate Kendo UI Validator by calling $().kendoValidator({/*..*/}). Also note that the rules should be set to the widget at the point of its declaration it is not supported to attach them after the fact.

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.