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

DatePicker/DateTimePicker events not working in AngularJS

1 Answer 694 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 28 Jan 2015, 03:57 PM
According to this link I should be able to bind to events using AngularJS: http://docs.telerik.com/kendo-ui/AngularJS/introduction

In the code I have below, the combo-box calls the event as expected but the date-time-picker does not:

<div ng-controller="OverviewCtrl as oc">
    <select kendo-combo-box id="recentActivityFrequency" ng-model="oc.frequency"
        k-on-change="oc.setCustom(kendoEvent)"
        style="width: 100px;">
        <option value="hourly">Hourly</option>
        <option value="daily">Daily</option>
        <option value="monthly">Monthly</option>
    </select>
 
    <input kendo-date-time-picker k-ng-model="oc.start" ng-show="oc.frequency == 'hourly'"
        k-on-change="oc.setCustom(kendoEvent)"
        k-on-open="oc.setCustom(kendoEvent)" k-on-close="oc.setCustom(kendoEvent)"
        k-format="'MMM d yyyy h tt'" k-interval="60" />
    </div>

1 Answer, 1 is accepted

Sort by
0
Chris
Top achievements
Rank 1
answered on 28 Jan 2015, 08:18 PM
Nevermind, turned out to be a browser caching issue.  Feel free to remove this thread - it works fine.
Tags
Date/Time Pickers
Asked by
Chris
Top achievements
Rank 1
Answers by
Chris
Top achievements
Rank 1
Share this question
or