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

Time Picker issue

1 Answer 17 Views
TimePicker and TimeSelector
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Chandan
Top achievements
Rank 1
Chandan asked on 27 Jan 2016, 10:25 AM

Hi team,
     I am using "RadTimeSpanPicker" to show the time but it is showing me the time for only 24 hrs. I want to show more that 400 hours. Which control I should use ?

Please help.

1 Answer, 1 is accepted

Sort by
0
Lance | Manager Technical Support
Telerik team
answered on 27 Jan 2016, 06:26 PM
Hi Chandan,

You want to use the RadTimeSpanPicker, here is an example of setting the MaxValue to 400 hours.

XAML
add the following namespace:
 
xmlns:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
 
to use
 
<telerikInput:RadTimeSpanPicker x:Name="radTimeSpanPicker" />


Code behind

//min value set to 1 hour
radTimeSpanPicker.MinValue = new TimeSpan(0,1,0,0);
 
//max value to 400 hours
radTimeSpanPicker.MaxValue = new TimeSpan(400,0,0);


Regards,
Lance | Tech Support Engineer, Sr.
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
TimePicker and TimeSelector
Asked by
Chandan
Top achievements
Rank 1
Answers by
Lance | Manager Technical Support
Telerik team
Share this question
or