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

TextBox for hours value

3 Answers 90 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Emanuele
Top achievements
Rank 1
Emanuele asked on 01 Sep 2011, 01:58 PM
Good Afternoon, I need something similar to a RadNumericTextBox that accepts only time inputs in this format hh:mm I don't need date.

here some examples:
125:00
3000:00
121:59

What telerik control can I use ?

Thank you

3 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 01 Sep 2011, 02:09 PM
Hello,

I suggest to you for that you can used RadTimePicker because it was automatically validate the time part.

<telerik:RadTimePicker ID="RadTimePicker1" ShowPopupOnFocus="false" runat="server">
            <TimePopupButton  Visible="false" />
        </telerik:RadTimePicker>

  RadTimePicker1.SelectedDate.Value.ToShortTimeString() // you can get only time part from here

Thanks,
Jayesh Goyani
0
Princy
Top achievements
Rank 1
answered on 01 Sep 2011, 02:10 PM
Hello Emauele,

You can use RadMaskedTextBox.
aspx:
<telerik:RadMaskedTextBox ID="RadMaskedTextBox1" runat="server" Mask="##:##">
</telerik:RadMaskedTextBox>

Thanks,
Princy
0
Emanuele
Top achievements
Rank 1
answered on 01 Sep 2011, 02:18 PM
Thanks, but is not possible to insert a value > 23:59 or the hours value > of 2 digits.

Emanuele
Tags
General Discussions
Asked by
Emanuele
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Princy
Top achievements
Rank 1
Emanuele
Top achievements
Rank 1
Share this question
or