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

RadSpinEditor EDITED

7 Answers 213 Views
SpinEditor
This is a migrated thread and some comments may be shown as answers.
Marcelo
Top achievements
Rank 1
Marcelo asked on 14 Dec 2010, 03:47 PM
HI,

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

Marcelo

7 Answers, 1 is accepted

Sort by
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.

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
0
Peter
Telerik team
answered on 20 Dec 2010, 03:04 PM
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.
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 ....
0
Peter
Telerik team
answered on 23 Dec 2010, 10:46 AM
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.
0
Sangeetha
Top achievements
Rank 1
answered on 31 Jan 2011, 10:57 AM
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
0
Peter
Telerik team
answered on 03 Feb 2011, 11:03 AM
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.
Tags
SpinEditor
Asked by
Marcelo
Top achievements
Rank 1
Answers by
Dean
Top achievements
Rank 2
Marcelo
Top achievements
Rank 1
Peter
Telerik team
Sangeetha
Top achievements
Rank 1
Share this question
or