This is a migrated thread and some comments may be shown as answers.

validateInput event not firing in AngularJS

2 Answers 62 Views
Validation
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 03 Feb 2017, 03:29 PM

Hello,

I am trying to to use validateInput event of kendo validator using k-on- prefix attribute, but seems like the event never fires, below is the example

http://dojo.telerik.com/OGEjE/5

Thanks
Ketul

2 Answers, 1 is accepted

Sort by
0
Accepted
Alex Hajigeorgieva
Telerik team
answered on 03 Feb 2017, 03:39 PM
Hello ,

The syntax for converting Kendo UI widget options to AngularJS directives is to change the option from camelCase to dash separated words. So if we change the k-on-validateInput to k-on-validate-input, the example works as expected.

Demo: http://dojo.telerik.com/UqexA

Documentation reference: http://docs.telerik.com/kendo-ui/AngularJS/introduction#widget-options-in-html

Kind Regards,
Alex Hajigeorgieva
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data (charts) and form elements.
0
James
Top achievements
Rank 1
answered on 03 Feb 2017, 03:52 PM
Thanks looks like it only works with the latest version. thanks for pointing out the syntax error, I will update my Kendo Version
Tags
Validation
Asked by
James
Top achievements
Rank 1
Answers by
Alex Hajigeorgieva
Telerik team
James
Top achievements
Rank 1
Share this question
or