javascript - Knockout and Kendo Datetimepicker resets date to today when changing time -


I have a page that uses the Condo Datetime picture to force a knockout view. I am using knockout-kendo.js for bridging. I

As you can see in it, I have set the scene in the initial times with the time of today's date. I set the value later (as if it was loaded with an AJAX recovery, I did not want to deal with Eco API at JSFiddle)

  var SchedulerAppointmentModel = function () {var self = it , Saved = [], initComplete = false; Self. StartDatabase = Ko.SourceWeb (moment (.) Format ("MM / DD / YYYHH: MM A")); Self.StartDateTime (moment ("10/23/2014 1:30 pm"). Format ("MM / DD / YYYH H: mm A")); };  

The problem is, if I change the time in my drop down box, reset today's date I wanted to leave the date alone

I think That it is doing nothing to set the candodetight picture in the code and not in the HTML. I think if I can set the max in some way then it will work.

Not sure that you still need an answer, but ...

I think that you have dragged into the Nakout-Kendo library, there is no need to start dateTimePicker manually. You can simply use the binding that comes with that library:

  & lt; Input id = "appt-start-datetime" value = "0" data-bind = "kandodet time picture: startdate" />  


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -