我正在使用小时间剑道,并在验证日期选择器时发现了问题。
@using (Ajax.BeginForm("FindByFilter", "Find", new { filter = Model.Filter }, new AjaxOptions { UpdateTargetId = "content", HttpMethod = "GET", InsertionMode = InsertionMode.Replace }))
{
<div class="demo-section fr" style="width: 340px; margin-top: -2px;">
<label for="start">Start:</label>
@(Html.Kendo().DatePickerFor(model => model.Filter.Start)
.Name("start")
.Culture("pt-BR")
.HtmlAttributes(new { style = "width: 140px" })
.Min(DateTime.Today)
.Events(e => e.Change("startChange"))
)
<label for="end" style="margin-left: 0.5em">End:</label>
@(Html.Kendo().DatePickerFor(model => model.Filter.End)
.Name("end")
.Culture("pt-BR")
.HtmlAttributes(new { style = "width: 140px" })
.Min(Model.Filter.Start)
.Events(e => e.Change("endChange"))
)
</div>
<div>
<input type="submit" class="button small secondary lupa fr" />
</div>
}
当我单击提交时,日期选择器不接受 20/04/2013 格式,仅格式为 2013-04-20。我将文化设置为 pt-BR,但仍在进行验证。任何人都可以帮忙吗?