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

Timepicker.value() + MVVM

1 Answer 44 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Dennis
Top achievements
Rank 2
Dennis asked on 24 Aug 2013, 06:16 PM
Hi don't know if this is a bug, but it costed my a lot of frustration :D In the end I solved it but I just wanted to share and check.

Anyway I had a timepicker MVVM bound to a value. On a certain JS event i would assign that timpickers value, but not by going through the viewModel object, rather directly using the value method of the picker. That would cause the timepicker to lose sync with the MVVM model and its value would go to a null... I didn't realise what was the bug for a good 5 hours of frustration and trying to get it to work :D.  

I don't know if going like this is something I should do. I guess If I'm using MVVM I should alawys edit values through the model, but the situation was specific and the expected reaction was for it to work the other way around.

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 27 Aug 2013, 10:19 AM
Hello Dennis,

Could you please share a simple demo, which demostrates the issue? Thus we will be able to review the specific scenario locally and give an explanation/solution.

Regards,
Georgi Krustev
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
Dennis
Top achievements
Rank 2
Answers by
Georgi Krustev
Telerik team
Share this question
or