7 Answers, 1 is accepted
0
Accepted

Dean
Top achievements
Rank 2
answered on 14 Dec 2010, 07:56 PM
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.
Hope this helps.
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.
0

Marcelo
Top achievements
Rank 1
answered on 14 Dec 2010, 08:26 PM
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
That is exactly what I wanted. And if I wanted that instead of increasing one by one, was 5 of 5 would do?
Marcelo
0
Hello Marcelo,
the Telerik team
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,
the Telerik team
Check out the Q1 2011 Roadmap for Telerik Controls for Windows Forms.
0

Marcelo
Top achievements
Rank 1
answered on 20 Dec 2010, 03:14 PM
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 ....
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 ....
0
Hello Marcelo,
Peter
the Telerik team
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.
Peter
the Telerik team
Check out the Q1 2011 Roadmap for Telerik Controls for Windows Forms.
0

Sangeetha
Top achievements
Rank 1
answered on 31 Jan 2011, 10:57 AM
Hi
I need the RadDateTimePicker for Hours alone as,
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
0
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:
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.
Peter
the Telerik team
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