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

    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:

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

  2. Boyan Dimitrov
    Boyan Dimitrov avatar
    1968 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. 

    Boyan Dimitrov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top