Days expressed in Hours in TimeSpanPicker

2 posts, 0 answers
  1. Dan
    Dan avatar
    1 posts
    Member since:
    Oct 2012

    Posted 27 Feb 2016 Link to this post

    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:


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


    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.

  2. Yana
    Yana avatar
    4654 posts

    Posted 01 Mar 2016 Link to this post

    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:

    Hope this will be helpful.

    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
Back to Top