take
take

Reputation: 2222

RadDatePicker selectable Dates

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?

Upvotes: 1

Views: 1056

Answers (1)

kmatyaszek
kmatyaszek

Reputation: 19296

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)

Upvotes: 1

Related Questions