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

Time change

3 Answers 87 Views
TimePicker
This is a migrated thread and some comments may be shown as answers.
Pan hal
Top achievements
Rank 1
Pan hal asked on 09 Dec 2009, 09:32 PM

Currently the default timepicker dropdown shows 1 hour difference time ie 12.00 AM, 1.00 PM, 2.00 PM, 3.00PM,4.00PM  etc  etc
Instead is there a way to control the time difference (eg :30 minutes or 15 minutes )

like 12.00 AM,12.30 AM,1.00 PM, 1.30 PM,  2.00 PM, 2.30PM,3.00PM ,3.30 PM etc 

We use this control in several places with this feature.

Can some one help with this

3 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 10 Dec 2009, 01:19 PM
Hello Pan,

Thank you for your interest in our products.

To change the time difference all you have to do is to set the TimeInterval property of the TimePicker to the desired interval.
Here is a very simple TimePicker defined in XAML:

<telerik:RadTimePicker x:Name="MyRadTimePicker" 
                 StartTime="0:0:0" 
                 EndTime="23:0:0" 
            HorizontalAlignment="Left" Width="200" 
                 Height
="20"       
                 TimeInterval
="0:30" Culture="en-US">
</telerik:RadTimePicker>
However, if you want to custom set the time displayed in the TimePicker you can visit http://demos.telerik.com/silverlight/#TimePicker/DataBinding and check out the example for data binding.

If you have any further questions please do not hesitate to contact us again.


All the best,
Konstantina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Pan hal
Top achievements
Rank 1
answered on 10 Dec 2009, 06:11 PM
Thanks for your reply. But The demo website has some issues. Get this errors. I tried both on IE and Firefox but no luck.

Can you please help me,
0
Konstantina
Telerik team
answered on 11 Dec 2009, 02:53 PM
Hi Pan, 

You can try cleaning the cache of the browsers.

Hope this works.
 
All the best,
Konstantina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
TimePicker
Asked by
Pan hal
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Pan hal
Top achievements
Rank 1
Share this question
or