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

Days expressed in Hours in TimeSpanPicker

1 Answer 11 Views
TimeSpanPicker
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 28 Feb 2016, 12:57 AM

My program needs to display a TimeSpan with days expressed in hours. For example,take the following TimeSpan:

var someTimeSpan = TimeSpan.FromHours(50);

The RadTimeSpanPicker displays the value and allows it to be edited in this format:

2.2:00:00

However, I need it to display the value and allow it to be edited in this format:

50:00:00

I grant that the way this is done out of the box is the way most would want it, and that I am asking for something special.

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 01 Mar 2016, 12:46 PM
Hi Daniel,

You could create a custom TimeSpanComponent and calculate the value in order to achieve the needed format. Please check the following topic for more details on custom TimeSpanComponents:
http://docs.telerik.com/devtools/wpf/controls/radtimespanpicker/timespancomponents#custom-timespancomponent

Hope this will be helpful.

Regards,
Yana
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
TimeSpanPicker
Asked by
Dan
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or