Whenever the user selects the time before the date on the RadDateTimePicker DropDown, the date gets defaulted to today's date (even though today's date is outside of the specified selectabledates). I'm looking for a way to default the date to SelectableDateStart or have the RadDateTimePicker wait for the user to select a date.
I included two pictures:
1. What the user sees when he clicks on the DepartureDateTime RadDateTimePicker
2. What gets selected when the user clicks on the time first (and hasn't selected any dates)
My XAML code looks like this:
<telerik:RadDateTimePicker x:Name="ItineraryDepartureDateTimePicker"
SelectedValue="{Binding Itinerary.DepartureTime}"
SelectableDateStart="{Binding Itinerary.TravelRequestFromDate}"
SelectableDateEnd="{Binding Itinerary.TravelRequestToDate
IsInputRestrictedToSelectableDates="True"
DisplayDate="{Binding Request.FromDate}"
DisplayDateStart="{Binding Itinerary.TravelRequestFromDate}"
DisplayDateEnd="{Binding Itinerary.TravelRequestToDate}"
CalendarStyle="{StaticResource CalendarStyle}" HorizontalAlignment="Left" DateTimeWatermarkContent="{DynamicResource LocalTime}" Width="140"/>
Where:
- Itinerary.DepartureTime is of type DateTime and is currently null
- Itinerary.TravelRequestFromDate is of type DateTime and is currently "July 25, 2018 00:00:00"
- Itinerary.TravelRequestToDate is of type DateTime and is currently "July 27, 2018 00:00:00"
What am I missing? Why is the date being defaulted to today's date whenever the user selects a time before a date on the Dropdown?