Angular set date/time picker options through controller

2 posts, 0 answers
  1. Stephen
    Stephen  avatar
    2 posts
    Member since:
    Jun 2015

    Posted 30 Jul 2015 Link to this post

    I am having issues trying to set my date time picker from my controller object in angular.

    here is my input object:

    <input kendo-date-time-picker
                       style="width:100%;"
                       type="text"
                       k-options="ctrl.dateTimeOptions"
                       k-ng-model="ctrl.date" />

     

    This is the object I have created for the options:

    ctrl.dateTimeOptions = {
                                format: "'MM/dd/yyyy HH:mm'",
                                timeFormat: "'HH:mm'",
                                parseFormats: "['yyyy-MM-ddTHH:mm:ss']"
                            };

     

    Is there something I have set up wrong?

  2. Stephen
    Stephen  avatar
    2 posts
    Member since:
    Jun 2015

    Posted 30 Jul 2015 Link to this post

    Got it working. Had to change where I was setting my object.
  3. Kendo UI is VS 2017 Ready
Back to Top