I am using Date/Time Pickers in application to scheduler task. But I don't need all list hours, so I want define the hours list.
It's possible ? Someone can help me?
If I can pass array list, resolve my problem.
2 Answers, 1 is accepted
0
Vladimir Iliev
Telerik team
answered on 19 Mar 2013, 02:01 PM
Hi Erick,
Basically in current scenario you should use two different widgets for the date and hour selection (DatePicker and TimePicker) - in that way you can define the possible hours using the dates array. Another option is to change the available hours of the DateTimePicker using custom code - please check the example below:
$(function () {
var hoursFilter = [new Date(2000, 10, 10, 12, 0, 0), new Date(2000, 10, 10, 13, 0, 0), new Date(2000, 10, 10, 14, 0, 0), new Date(2000, 10, 10, 15, 0, 0)];