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

Highlight time period according to a collection of TimeSpan

1 Answer 52 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Marco
Top achievements
Rank 1
Marco asked on 21 May 2013, 08:30 PM
Hello,

I am new to Telerik and have trouble to make timepicker finish my work. Here is my requirements:

I have a collection of TimeSpan and want the timepicker highlight time periods containing these TimeSpan's. For example:
I have 13:00, 14:15 and 16:30 in my collection. I hope that timepicker will highlight just 13:00, 14:00 and 16:00 and keep other hour stay grey when the timepicker control is active.

Thanks in advance!

-Marco

1 Answer, 1 is accepted

Sort by
0
Ivo
Telerik team
answered on 27 May 2013, 07:54 AM
Hi Marco,

In order to achieve this behavior I would suggest you to create a new StyeSelector for the clock part of the RadTimePicker that sets a non-selectable style if a TimeSpan is not part of a give collection. I prepared a sample project that demonstrates this approach.

Regards,
Ivo
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
DatePicker
Asked by
Marco
Top achievements
Rank 1
Answers by
Ivo
Telerik team
Share this question
or