This is a migrated thread and some comments may be shown as answers.

Styling the BlackoutDates

1 Answer 146 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Fredrik
Top achievements
Rank 1
Fredrik asked on 25 Apr 2017, 07:24 AM

Hello!

I have a question about the Calendar that is used in the RadDateTimePicker control.

I want to know if there is a way to style the BlackoutDates?

In our application we have a calendar function where holidays etc are planned. I would like to mark these dates in a RadDateTimePicker control but I still want them to be selectable so that the users can override the planned holidays etc.

Could I use the BlackoutDates in such a way?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Accepted
Dilyan Traykov
Telerik team
answered on 27 Apr 2017, 02:09 PM
Hello Fredrik,

Rather than use the BlackoutDates feature, may I suggest using the control's DayTemplateSelector property and returning a different template based on your custom logic?

You can have a look at the Using DayTemplateSelector demo from the SDK Samples Browser, as well as the demos available in the WPF Controls Samples to get an idea of how to implement this.

I hope you find this helpful. Please let me know if I can further assist you in any way.

Regards,
Dilyan Traykov
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which you to write beautiful native mobile apps using a single shared C# codebase.
Tags
Calendar
Asked by
Fredrik
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Share this question
or