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

    Hi,
    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
    Admin
    Kalin avatar
    1209 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.

    Regards,
    Kalin
    Telerik

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
Back to Top