This is a migrated thread and some comments may be shown as answers.

Disabling selection for Saturday/Sunday

1 Answer 45 Views
TimePicker
This is a migrated thread and some comments may be shown as answers.
Michele
Top achievements
Rank 2
Michele asked on 30 Jun 2009, 03:17 PM
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

Paolo

1 Answer, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 03 Jul 2009, 08:21 PM
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!

Regards,
Kaloyan
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.
Tags
TimePicker
Asked by
Michele
Top achievements
Rank 2
Answers by
Kaloyan
Telerik team
Share this question
or