1

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?

take
  • 2,202
  • 2
  • 19
  • 36

1 Answers1

1

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:

  1. Set SelectableDateStart - the first date that can be selected (SelectableDateStart doc)
  2. Set SelectableDateEnd - the last date that can be selected (SelectableDateEnd doc)
  3. Set BlackoutDates - a list of dates that cannot be selected (BlackoutDates doc)
kmatyaszek
  • 19,016
  • 9
  • 60
  • 65