Disable all WeekDays and all Weekends

2 posts, 0 answers
  1. Salman
    Salman avatar
    1 posts
    Member since:
    Oct 2011

    Posted 09 Jun 2013 Link to this post

    Can anyone let me know how to disable all the weekdays and all weekends in the telerik radDateTimePicker control?. A sample code snippet would really help.

    Many Regards,
    Salman Farrukh
  2. Kalin
    Kalin avatar
    1360 posts

    Posted 13 Jun 2013 Link to this post

    Hello Salman,

    You could achieve the desired scenario using a custom template for the Calendar inside the DateTimePicker dropdown. You should create a custom DataTemplateSelector and implement the logic for disabling the desired days in its SelectTemplate method.

    Please see the attached sample project for the exact approach.

    Hope this helps.


    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top