11 Answers, 1 is accepted
Any ideas on how this was fixed? I'm having the same issue. AngularJS, newest KendoUI download, code below. vm.dateTime is an isodate, don't know if that causes issues.
<input kendo-date-time-picker k-ng-model="vm.dateTime" />
​
Thank Audrey! I'm using Typescript so in my API call to my resource, on success I put that code in and it works! For future people, this is what it generally looks like.
this._$scope.vm = this;
this._​someResource.​myResource.get({
org: this.orgId
}, angular.bind(this, (​someSchedule: ​any) => {
this.​someSchedule = ​someSchedule;
​_$scope.vmDate = kendo.toString(​_$scope​.someSchedule.​dateTime, 'u');
}),
(response: any) => {
console.log("Fail: get");
});​
and in the view I had <input id="datetimepicker-runOnce" kendo-date-time-picker k-ng-model="vm.​someSchedule.dateTime" ng-model="vmDate" />
Hello Ryan,
I am afraid that the issue is not a known one, nor is reproducible in our online demos, so please extract a runnable sample in a Kendo UI Dojo and we will be happy to help.
Regards,
Kiril Nikolov
Telerik
http://demos.telerik.com/kendo-ui/datetimepicker/angular
This problem is still present in the online demos. I cannot get the field to initialize properly. Can someone give me a workaround for it?
Hello Mike,
Is this the issue that you are referring to:
https://github.com/telerik/kendo-ui-core/issues/1155
If this is the case, then please note that the issue is resolved and the fix will be available with the next release.
Regards,
Kiril Nikolov
Telerik
The issue is still there:
https://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/
Click Run Code under the Date Ranges example.
There's a value set in the model, but the UI doesn't show it.
Removing the #someID="ngmodel" & [(ngModel)]="value" and adding [(value)] fixes that issue, but then you lose the ability to read the errors from the ngModel.
Ideas?
Thank you for reporting this.
Please have in mind that this a forum for the Kendo UI for jQuery and the Angular in the name refers to AngularJS(1). The forum is from 2015 when Kendo UI for Angular 2+ was not released.
I will forward this to the relevant team for inspecting it.
Also, I can recommend submit a ticket for the Kendo UI for Angular 2+ product or to write a post in the dedicated forum:
https://www.telerik.com/forums/kendo-angular-ui
Also, the issue could be with the plunker as well, but the Angular 2+ team can provide more details:
https://github.com/telerik/kendo-angular/issues/1129
Regards,
Stefan
Progress Telerik