I have a form using html helpers like this:
@using (Html.BeginForm("GuardarCliente", "Cliente"))
{
@Html.LabelFor(m => m.FechaDeNacimiento)
@Html.TextBoxFor(m => m.FechaDeNacimiento, new { @class = "form-control", placeholder = "Fecha de Nacimiento...", style = "width:74%; " })
<div class="row">
@Html.ValidationMessageFor(m => m.FechaDeNacimiento)
</div>
@Html.HiddenFor(m => m.Id)
@Html.AntiForgeryToken()
<button class="btn btn-primary">Save</button>
}
But i want to transform this input into Kendo datetime picker like this:
$("#FechaDeNacimiento").kendoDateTimePicker({
value: new Date(),
culture: "es-ES",
dateInput: true
});
Then when i cliked the save button is sending null value in the controller, why is that? How can i fix this with jQuery and not using the ASP.NET MVC wrapper of kendo?