So I'm using MVC3, creating a textbox for the date-time like so:
@Html.TextBoxFor(e => e.EndDtTm, new { id = "endDtTm", style = "width: 200px;" })
and in Ready creating the kendo control
$("#endDtTm").kendoDateTimePicker();
The problem I'm having is that after I load up the model the control shows the date and time correctly but if I click the time icon and pick a new time the date resets to todays date. The opposite happens if I select the date icon and pick a new date then the time is reset to 12:00 am.
How do I prevent this from happening?
@Html.TextBoxFor(e => e.EndDtTm, new { id = "endDtTm", style = "width: 200px;" })
and in Ready creating the kendo control
$("#endDtTm").kendoDateTimePicker();
The problem I'm having is that after I load up the model the control shows the date and time correctly but if I click the time icon and pick a new time the date resets to todays date. The opposite happens if I select the date icon and pick a new date then the time is reset to 12:00 am.
How do I prevent this from happening?