RadDatePicker: Disable / Hide Weekends

2 posts, 0 answers
  1. Vinoth Kathappanraju
    Vinoth Kathappanraju avatar
    3 posts
    Member since:
    Mar 2010

    Posted 28 Aug Link to this post


    I have a requirement to hide weekends to show up on the dropdown calendar control in RadDatePicker for WPF. I have gone through lots of google posts and telerik forum posts but couldn't find a way to do this. Is there a way to acheive this? If this is not possible, is there a easier way to disable selecting the weekends? The BlackoutDates collection won't work for me as i will need to insert all weekend dates from 1970 in to it and it is not a workable solution for us.



  2. Nasko
    Nasko avatar
    555 posts

    Posted 29 Aug Link to this post

    Hello Vinoth,

    In the current implementation of RadDatePicker it is not possible to hide the weekends from the Calendar part of the control.

    However, in order to achieve the desired behavior and prevent weekends from selection without using BlackoutDates you could use the DayButtonStyleSelector. Inside the selector you could check the day of the week of the date and disable that date from selection if it is a weekend day. Some more detailed information about the DayButtonStyleSelector you could find on the following link from our documentation:

    Attached you could find a sample project that demonstrates how to use DayButtonStyleSelector with RadDatePicker - please, check it.

    We hope this will help you.

    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft R3 2016 release webinar banner
Back to Top