0
내 MVC 5 응용 프로그램에서 검도 데이트 피커를 구현 중입니다. 나는 뷰 모델 속성이있는 DateTimePicker검도 datetimepicker가 뷰 모델에 값을 설정하지 않음
<div class="form-group">
@Html.LabelFor(model => model.ContractStartDate, htmlAttributes: new { @class = "control-label col-md-5" })
<div class="col-md-6">
@*@Html.EditorFor(model => model.ContractStartDate, new { htmlAttributes = new { @class = "form-control" } })*@
@(Html.Kendo().DatePickerFor(model => model.ContractStartDate)
.Name("contractdatepicker")
.Value("10/10/2011")
.HtmlAttributes(new { style = "width: 100%" })
)
@Html.ValidationMessageFor(model => model.ContractStartDate, "", new { @class = "text-danger" })
</div>
</div>