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

Time granularity

3 Answers 60 Views
TimePicker
This is a migrated thread and some comments may be shown as answers.
Ferenc Gál
Top achievements
Rank 1
Ferenc Gál asked on 14 Jun 2010, 10:22 AM
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

3 Answers, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 16 Jun 2010, 11:01 AM
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.
0
Ferenc Gál
Top achievements
Rank 1
answered on 16 Jun 2010, 11:36 AM
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
0
Konstantina
Telerik team
answered on 21 Jun 2010, 08:36 AM
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
Tags
TimePicker
Asked by
Ferenc Gál
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Ferenc Gál
Top achievements
Rank 1
Konstantina
Telerik team
Share this question
or