RadDateTimePicker - How to change the clock to RadTimeSpanPicker?

1 Answer 78 Views
DatePicker DateTimePicker TimePicker TimeSpanPicker
Ohad
Top achievements
Rank 3
Bronze
Iron
Iron
Ohad asked on 19 Jan 2022, 08:05 AM

Hi,

I used RadTimeSpanPicker, but I got a situation where I also needed a date.

So I want to use RadDateTimePicker as in the picture,

But with the RadTimeSpanPicker clock and not with the clock that RadDateTimePicker has.

I would be happy to help if this can be done and how

Thank you.

 






1 Answer, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 21 Jan 2022, 02:47 PM

Hi Ohad,

To achieve the desired result you would need to override the default control template of the RadDateTimePicker control and replace the default DateTimePickerClock which is used with a RadTimeSpanPicker.

For your convenience, I've prepared a small sample project where I've demonstrated how this can be achieved for the Fluent theme.

I hope you find this helpful.

Regards,
Dilyan Traykov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
DatePicker DateTimePicker TimePicker TimeSpanPicker
Asked by
Ohad
Top achievements
Rank 3
Bronze
Iron
Iron
Answers by
Dilyan Traykov
Telerik team
Share this question
or