Hi,
I created a new project via the Telerik MVC template. When using Scaffolding to generate a controller and view for an EF domain, if there is a datetime field it'll be mapped to a Telerik DateTimePicker somehow as code in the razor view will look like this code, where at run time with 'view source' I can see the KendoUi control mentioned. My question is how to access the datetimepicker for example to add events?
I created a new project via the Telerik MVC template. When using Scaffolding to generate a controller and view for an EF domain, if there is a datetime field it'll be mapped to a Telerik DateTimePicker somehow as code in the razor view will look like this code, where at run time with 'view source' I can see the KendoUi control mentioned. My question is how to access the datetimepicker for example to add events?
<div class=
"form-group"
>
@Html.LabelFor(model => model.from_date, htmlAttributes:
new
{ @class =
"control-label col-md-2"
})
<div class=
"col-md-10"
>
@Html.EditorFor(model => model.from_date,
new
{ htmlAttributes =
new
{ @class =
"form-control"
} })
@Html.ValidationMessageFor(model => model.from_date,
""
,
new
{ @class =
"text-danger"
})
</div>
</div>