I have the following window code with 2 date picker controls which read and write to 2 date properties on my model
The window can read the properties fine, but can never set them, even though if I re-open the window control it knows what the new values are.
Is there some kind of validation or commit function that needs to called before closing the window object?
@(Html.Kendo().Window()
.Name("ReportRefreshOptionsDialog")
.Title("Schedule Report Options")
.Content(@<text>
<div class ="left" width:100px>From:</div>
@(Html.Kendo().DatePicker()
.Name("Model.ScheduleReport.FromDate")
.Value(Model.ScheduleReport.FromDate)
.HtmlAttributes(new { style = "width:150px" })
)
<div class ="left" width:100px>To:</div>
@(Html.Kendo().DatePicker()
.Name("Model.ScheduleReport.ToDate")
.Value(Model.ScheduleReport.ToDate)
.HtmlAttributes(new { style = "width:150px" })
)
<p></p>
<div align="right"><button id="btnReportOptionsOk">Ok</button></div>
</text>)
.Modal(true)
.Width(250)
.Visible(false)
.Actions(actions => actions.Close())
)