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

MVVM binding a date field assigns today's date

1 Answer 67 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Bilal
Top achievements
Rank 2
Bilal asked on 25 Mar 2015, 07:49 PM
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

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 27 Mar 2015, 08:58 AM

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!
 
Tags
Date/Time Pickers
Asked by
Bilal
Top achievements
Rank 2
Answers by
Boyan Dimitrov
Telerik team
Share this question
or