This question is locked. New answers and comments are not allowed.
Hi,
I am using an MVC Datepicker in an Edit template in the following way
I can initialize the datepicker with via the view model. But when the view Posts back to the controller, the date value is not retained. It is initializes to "01/01/0001". What all other attributes do I have to set to bind the datetime value to the model ?
I am attaching a scaled down project where I use a Telerik datetime picker & a regular MVC datetime picker. On hitting the update button, the regular datetime picker sets the correct value to the model, But the telerik datetime value is not bound.
Thanks
Achilles
I am using an MVC Datepicker in an Edit template in the following way
<script type="text/javascript"> //DatePicker client-side events. function onChangeDatePicker(e) { document.forms[0].submit(); } </script>@( Html.Telerik().DatePickerFor(m => m.StartDate) .Name("DatePicker") .ClientEvents(events => events .OnChange("onChangeDatePicker") ) )I can initialize the datepicker with via the view model. But when the view Posts back to the controller, the date value is not retained. It is initializes to "01/01/0001". What all other attributes do I have to set to bind the datetime value to the model ?
I am attaching a scaled down project where I use a Telerik datetime picker & a regular MVC datetime picker. On hitting the update button, the regular datetime picker sets the correct value to the model, But the telerik datetime value is not bound.
Thanks
Achilles