Dapicker intial value number (TimeStamp)

3 posts, 0 answers
  1. Jhony
    Jhony avatar
    5 posts
    Member since:
    May 2016

    Posted 21 Oct Link to this post

    Hello,

    how i do to set kendo ui date picker with number value (timeStamp) for example, k-ng-model="1477051763928".

     

    it returns an error: TypeError: e.indexOf is not a function
        at ve.parseDate (http://127.0.0.1:8081/js/libs/telerik.kendoui/js/kendo.all.min.js:9:18925)
        at init._update (http://127.0.0.1:8081/js/libs/telerik.kendoui/js/kendo.all.min.js:22:10140)
        at init.value (http://127.0.0.1:8081/js/libs/telerik.kendoui/js/kendo.all.min.js:22:8916)
        at Object.<anonymous> (http://127.0.0.1:8081/js/libs/telerik.kendoui/js/kendo.all.min.js:66:1007)
        at init.n.(anonymous function) (http://127.0.0.1:8081/js/libs/telerik.kendoui/js/kendo.all.min.js:65:29859)
        at Object.d [as fn] (http://127.0.0.1:8081/js/libs/telerik.kendoui/js/kendo.all.min.js:65:26937)
        at n.$digest (http://127.0.0.1:8081/js/libs/angular/angular.min.js:124:114)
        at n.$apply (http://127.0.0.1:8081/js/libs/angular/angular.min.js:127:12)
        at l (http://127.0.0.1:8081/js/libs/angular/angular.min.js:81:195)
        at F (http://127.0.0.1:8081/js/libs/angular/angular.min.js:85:314)

     

    Please, answer asap.

  2. Patrick
    Admin
    Patrick avatar
    171 posts

    Posted 21 Oct Link to this post

    Hi Jhony,

    In order to set the Kendo DatePicker using a TimeStamp, you will need to convert the TimeStamp to a Date.  Please take a look at the following Kendo UI Dojo by Progress which shows one approach.

    Hope this helps!

    Regards,
    Patrick
    Telerik by Progress
     
    Build rich, delightful, *native* Angular 2 apps with Kendo UI for Angular 2. Try it out today! Kendo UI for Angular 2 (currently in beta) is a jQuery-free toolset, written in TypeScript, designed from the ground up to offer true, native Angular 2 components.
     
  3. Kendo UI is VS 2017 Ready
  4. Jhony
    Jhony avatar
    5 posts
    Member since:
    May 2016

    Posted 22 Nov Link to this post

    So I have to deal in this case, thank you!

Back to Top