Time granularity

4 posts, 0 answers
  1. Ferenc Gál
    Ferenc Gál avatar
    6 posts
    Member since:
    Apr 2010

    Posted 14 Jun 2010 Link to this post

    Hi,

    I use a RadTimePicker as a CellEditTemplate in a RadGridView with binding a DataTable.
    I managed to bind the data to the TimePicker and it displays correctly (e.g. 12:23:59), but I can change its value only to timestamps in hour (e.g. 12:00:00). How can I change its value to such a date as 23:34:56?

    Thanks in advance!

    Feri
  2. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 16 Jun 2010 Link to this post

    Hi Ferenc Gál,

    The value types that are using by the RadTimePicker are of TimeSpan as you have already noticed. In terms of getting a 23:34 TimeSpan as a result from 12:23, you have to add value equals to 11.11.

    Regards,
    Kaloyan
    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Ferenc Gál
    Ferenc Gál avatar
    6 posts
    Member since:
    Apr 2010

    Posted 16 Jun 2010 Link to this post

    Hi Kaloyan,

    I think I was not clear.
    My problem is the following:
    I have the datepicker in the grid cell. I click on the clock at the right side. A grid containing time values (only hours, e. g. 12:00, 13:00) is drop down. I can choose any of them and the textbox of datepicker is filled with that timestamp (e.g. 12:00, 13:00). But I do not want to pick only whole-hour-timestamps from the grid, I also would like to pick other timestamps, like 12:56, 14:02 etc.

    My question is: Is there any setting to achieve such a functionality?

    Br,
    Feri
  5. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 21 Jun 2010 Link to this post

    Hi Ferenc Gál,

    Thank you for your clarification.

    You can populate the TimePicker's items as shown in this online demo.

    If you need further assistance please let us know.

    Greetings,
    Konstantina
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
Back to Top