MVVM binding a date field assigns today's date

2 posts, 0 answers
  1. Bilal
    Bilal avatar
    109 posts
    Member since:
    Oct 2014

    Posted 25 Mar 2015 Link to this post

    Hi,
    I noticed that when binding a datepicker to a field of type "date" on the model, by default the datepicker holds today's date. Here is a dojo for that:
    http://dojo.telerik.com/@bhaidar/ALayI

    Is this the default behavior? What if I want to keep the value empty?

    Regards
    Bilal
  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 27 Mar 2015 Link to this post

    Hello Bilal,

    Yes, this is the default behavior. You can see here that it behaves in the same way without MVVM binding. 

    Regards,
    Boyan Dimitrov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
Back to Top