In general, ng-model
binding does not integrate so good with third-party widgets (such as Kendo UI widgets), as it does not handle dates' two-way binding very well. The differences between ng-model
are explained in the following section of our documentation, and this is the reason k-ng-model
If you do not want to use the Kendo UI Validator, you can use the following workaround to make ng-model
The key points are handling the change
event of the DatePicker, in which the scope variable is updated with the Date object representation of the stringified date, as well as configuring the parseFormats
option so that the widget recognizes the string as a valid date format, and knows how to parse it.
I hope this helps.
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI