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

MVVM Databound DatePicker not updating viewmodel value / datepicker value

3 Answers 317 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Duane
Top achievements
Rank 1
Duane asked on 09 Sep 2012, 10:38 AM
You can see this in effect here:
http://jsfiddle.net/pwhmF/42/

The initial viewmodel's value is databound correctly, however neither the viewmodel / datepicker's value gets updated after a mouse click selection.  Yet typing and pressing enter works??

Is there something wrong with my databinding configuration?

3 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Krustev
Telerik team
answered on 10 Sep 2012, 03:32 PM
Hello Duane,

 
Thank you for the jsFiddle demo. After intial review I noticed that the input element has data-role="datepicker"
attribute, which tell the Kendo MVVM to initialize DatePicker from this input. After that you try to inialize a DatePicker from already generated DatePicker, which is not supported. I updated your jsFiddle demo to show how to implement declarative binding correctly.

Kind regards,
Georgi Krustev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
WD
Top achievements
Rank 1
answered on 11 Sep 2012, 04:18 AM
Hello Krustev,

The DatePicker does not work on iPad or andriod tablet. Please investigate.

Kind regards,
Watbe
0
Duane
Top achievements
Rank 1
answered on 11 Sep 2012, 07:12 PM
Thanks Georgi, that clears it up, I knew it'd be something simple like that.
Tags
Date/Time Pickers
Asked by
Duane
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
WD
Top achievements
Rank 1
Duane
Top achievements
Rank 1
Share this question
or