This question is locked. New answers and comments are not allowed.
Using datepicker to takr "To" and "From" date inputs in a MVC view . I need to make sure that users can't select To date value prior to From value. I am doing as follows
<%: Html.Telerik().DatePicker().Name("From").OpenOnFocus(true)%>
<%: Html.Telerik().DatePicker().Name("To").Min(Model.From).OpenOnFocus(true)%>
Getting an error on load of the page:
Server Error in '/' Application.
I understand it's happening because my "To" field is empty, but what is the walk-around?
<%: Html.Telerik().DatePicker().Name("From").OpenOnFocus(true)%>
<%: Html.Telerik().DatePicker().Name("To").Min(Model.From).OpenOnFocus(true)%>
Getting an error on load of the page:
Server Error in '/' Application.
"date" cannot be null or empty.
I understand it's happening because my "To" field is empty, but what is the walk-around?