Disabling selection for Saturday/Sunday

2 posts, 0 answers
  1. Paolo
    Paolo avatar
    423 posts
    Member since:
    Jun 2009

    Posted 30 Jun 2009 Link to this post

    Hello to everybody,
    it's possible to disable on the panel (and not checking by code) the selection of Saturday/Sunday plus some other days as 25december?
    I wish to have them on the panel but unclickable...
    Thanks in advance

  2. Kaloyan
    Kaloyan avatar
    920 posts

    Posted 03 Jul 2009 Link to this post

    Hello Paolo,

    Thank you for your request.

    Yes, this is possible. All you need to do is create a custom class derived from DataTemplateSelector and then override the SelectTemplate method. There you have access to the date which is displayed in the calendar.

    Attached you can find the working solution of your case. I hope this helps!

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. DevCraft R3 2016 release webinar banner
Back to Top