How do you get the date picker to display the initial value when it is in a wizard?
This code is from the demo and not inside a wizard so it works:
<div class="demo-section k-content"> <h4>Show e-mails from:</h4> @(Html.Kendo().DatePicker() .Name("datepicker") .Value("10/10/2011") .HtmlAttributes(new { style = "width: 100%", title = "datepicker" }) ) </div>
In the following code it is in a wizard and it does not display the initial value.
s.Add<Contract>()
.Title("Email details")
.Form(f => f
.Validatable(v =>
{
v.ValidateOnBlur(true);
v.ValidationSummary(vs => vs.Enable(false));
})
.FormData(Model.Contractor.Contracts)
.Items(items =>
{
items.Add()
.Field(p => p.StartDate)
.Label(l => l.Text("Start Date"))
.Editor(e =>
{
e.DatePicker()
.Name("Startdatepicker")
.Value("10/20/2011")
.HtmlAttributes(new { style = "width: 100%", title = "datepicker" });
});
})
)
.Buttons(b =>
{
b.Previous();
b.Next();
});