Styling the BlackoutDates

2 posts, 1 answers
  1. Fredrik
    Fredrik avatar
    4 posts
    Member since:
    Nov 2014

    Posted 25 Apr Link to this post

    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!

  2. Answer
    Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    602 posts

    Posted 27 Apr Link to this post

    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 allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top