Time Picker issue

2 posts, 0 answers
  1. Chandan
    Chandan avatar
    17 posts
    Member since:
    Jun 2015

    Posted 27 Jan Link to this post

    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.

  2. Lance | Tech Support Engineer, Sr.
    Admin
    Lance | Tech Support Engineer, Sr. avatar
    135 posts

    Posted 27 Jan Link to this post

    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
  3. DevCraft banner
Back to Top