I'm working with Teleriks RadDatePicker and need to disable a various count of dates for the user.
I started with the SelectableDateStart
and SelectableDateEnd
Properties.
<telerik:RadDatePicker VerticalAlignment="Center"
SelectableDateEnd="{Binding Path=SelectableDateEnd}"
SelectableDateStart="{Binding Path=SelectableDateStart}"
SelectedValue="{Binding Path=SelectedTimeWindow}" />
Is there a way to bind a list with selectable Dates?
There is no way to bind a list with selectable Dates, but you can set BlackoutDates
which contains a list of dates that cannot be selected.
You should follow these step:
SelectableDateStart
- the first date that can be selected (SelectableDateStart doc)SelectableDateEnd
- the last date that can be selected (SelectableDateEnd doc)BlackoutDates
- a list of dates that cannot be selected (BlackoutDates doc)