3 posts, 0 answers
  1. Doug
    Doug avatar
    1 posts
    Member since:
    Oct 2010

    Posted 22 Jun 2011 Link to this post

    Can you provide the string format used in the SelectorFormat property?

    I'd like to, for example, show hours, minutes, seconds, and not display the AM/PM selector. Is this possible.
  2. Deyan
    Deyan avatar
    2026 posts

    Posted 23 Jun 2011 Link to this post

    Hello Doug,

    Thanks for contacting us and for your question.

    Currently, the RadTimeSelecto/RadTimePicker controls do not support seconds.

    You can find a very useful information regarding the SelectorFormat property here:

    I hope this helps.

    Do not hesitate to get back to us in case you have further questions or need assistance.

    All the best,
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  3. DevCraft banner
  4. Vijay
    Vijay avatar
    29 posts
    Member since:
    Nov 2011

    Posted 03 Jun 2012 Link to this post

    Hello Doug,

    Please find the below sample code for which describe how to setup selectorformat property value programmatically. In the below code, wcf service is used and communicated to progress request/response mechanism. Use this as sample model towards your requirements and this works out now.

    SelectorFormat = "H/M/T". This can be customized as per the requirements as "h or H", "M or m" or "T or t".
    Please find the below source code for much better idea towards this.
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Net;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Documents;
    using System.Windows.Input;
    using System.Windows.Media;
    using System.Windows.Media.Animation;
    using System.Windows.Shapes;
    using Microsoft.Phone.Controls;
    using Telerik.Windows.Controls;
    using Rad_Time_Selector_Application.ServiceReference1;
    namespace Rad_Time_Selector_Application
     public partial class MainPage : PhoneApplicationPage
     // Constructor
     public MainPage()
    public void mainpage_Loaded(object sender, RoutedEventArgs e)
    public void getRadTime()
     objRadSelector.HorizontalAlignment = System.Windows.HorizontalAlignment.Stretch;
     objRadSelector.VerticalAlignment = System.Windows.VerticalAlignment.Center;
     objRadSelector.SelectorFormat = "H/M/T";
     objRadSelector.SelectedValueChanged +=new DateTimeValueChangedEventHandler(sel_Call);
    private void time_Call(object sender, timeCompletedEventArgs e)
     RadMessageBox.Show("Selected Time is: " + e.Result.ToShortTimeString(), MessageBoxButtons.OKCancel, "RadTimeSelection - WCF", null, false, false, System.Windows.HorizontalAlignment.Stretch, System.Windows.VerticalAlignment.Center, null);
    protected void sel_Call(object sender, ValueChangedEventArgs<DateTime> e)
     var time = objRadSelector.SelectedValue;
     objClient.timeCompleted +=new EventHandler<timeCompletedEventArgs>(time_Call);
    #region Instance Variables
    RadTimeSelector objRadSelector = new RadTimeSelector();
     Service1Client objClient = new Service1Client();

    I hope this was useful!

    Thanks and Regards,
Back to Top