RadSpinEditor EDITED

8 posts, 1 answers
  1. Marcelo
    Marcelo avatar
    16 posts
    Member since:
    Aug 2010

    Posted 14 Dec 2010 Link to this post

    HI,

    Is to edit the property of RadSpinEditor.Text??
    Example put in the time format.

    Marcelo
  2. Answer
    Dean
    Dean avatar
    43 posts
    Member since:
    Jun 2009

    Posted 14 Dec 2010 Link to this post

    Hi Marcelo,

    Instead of using the SpinEditor for Time input, you could use the RadDateTimePicker and use the following properties to get the result you are looking for.

    Public Sub New()
        ' This call is required by the designer.
        InitializeComponent()
     
        ' Add any initialization after the InitializeComponent() call.
        Me.RadDateTimePicker.Format = DateTimePickerFormat.Time
        Me.RadDateTimePicker.ShowUpDown = True
        Me.RadDateTimePicker.CustomFormat = "hh:mm:ss tt"
    End Sub

    Hope this helps.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Marcelo
    Marcelo avatar
    16 posts
    Member since:
    Aug 2010

    Posted 14 Dec 2010 Link to this post

    Thanks Dean

    That is exactly what I wanted. And if I wanted that instead of increasing one by one, was 5 of 5 would do?

    Marcelo
  5. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 20 Dec 2010 Link to this post

    Hello Marcelo,

    Could you please clarify what exactly you want to achieve?

    Currently, RadDateTimePicker does not support a user-defined step to increase or decrease time.

    Best wishes,

    Peter
    the Telerik team

     

    Check out the Q1 2011 Roadmap for Telerik Controls for Windows Forms.
  6. Marcelo
    Marcelo avatar
    16 posts
    Member since:
    Aug 2010

    Posted 20 Dec 2010 Link to this post

    Peter,

    What I'm trying to do is the following:
    I have to make scores of pieces of music in periods of time, in the case of 5 in 5 minutes, and I'm not getting the RadDateTimePicker. The example I posted the Dean makes 90% more than I need I need to increase the hours of 5 in 5 minutes. Is to do this?

    Thanks for the help ....
  7. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 23 Dec 2010 Link to this post

    Hello Marcelo,

    Thank you for the provided information.

    Currently, RadDateTimePicker does not support a custom defined steps to increase or decrease time.

    Do not hesitate to contact us if you have other questions.

    Regards,
    Peter
    the Telerik team
    Check out the Q1 2011 Roadmap for Telerik Controls for Windows Forms.
  8. Sangeetha
    Sangeetha avatar
    28 posts
    Member since:
    Oct 2010

    Posted 31 Jan 2011 Link to this post

    Hi

    I need the RadDateTimePicker for Hours alone as,

    Me.RadDateTimePicker.Format = DateTimePickerFormat.Time
        Me.RadDateTimePicker.CustomFormat = "HH"

    But i do not want to show the up & down arrow marks, i want the bottom arrow alone, but it should pick hours.

    Please help.

    Regards,
    Sangeetha. G
  9. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 03 Feb 2011 Link to this post

    Hello,

    Thank you for the request.

    RadDateTimePicker does not support such functionality. I would like to suggest customizing RadSpinEditor for your purposes.

    You can set RadSpinEditor's Minimum to 0 and Maximum to 24 and hide the upper arrow button with this lines of code:
    radSpinEditor1.Maximum = 24
    radSpinEditor1.Minimum = 0  
    radSpinEditor1.SpinElement.UpButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed

    You will notice that there is empty space above the down arrow button. This behavior cannot be worked around and the down arrow button cannot be extended to fill the whole RadSpinEditor height.

    Do not hesitate to contact us if you have other questions.

    Regards,
    Peter
    the Telerik team
    Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
Back to Top
UI for WinForms is Visual Studio 2017 Ready