This is a migrated thread and some comments may be shown as answers.
Custom Text Entry in DateTimePicker
4 Answers 57 Views
This is a migrated thread and some comments may be shown as answers.
Robyn
Top achievements
Rank 1
Robyn asked on 19 Dec 2011, 01:30 AM
Hey guys,

I've started to use this control and have a quick question, apologies if it's addressed elsewhere on the forum but I've not found anything from reading and searching for this.

We have a requirement (for some date fields) that the user be able to enter the date with continuous entry of numbers. IE to enter a date 01/02/1999 the user should only have to tab to the field then press the keys 0-1-0-2-1-9-9-9 then tab onto the next field.

This datetimepicker, so far seems to have the same issue has the microsoft one in that to type this data in you need to hit the following keys 0-1-RightArrow-0-2-RightArrow-1-9-9-9
We have solved the issue for a particular date entry field by using our own masked text box but it would be nice to get this behaviour AND the datetimepicker in the same control.

I understand that the datetimepicker uses a RadMaskedTextBox for the text entry field, but I can't figure out how to get any control of the text entry itself

Thanks for your time,
Direct Control

4 Answers, 1 is accepted

Sort by
0
Lookoum
Top achievements
Rank 1
answered on 21 Dec 2011, 12:57 PM
Hi every body

I've got the same problem if someone could help us it could be great. :D

Thanks a lot.

Lookoum
0
Peter
Telerik team
answered on 22 Dec 2011, 12:51 PM
Hi Robyn,

Thank you for writing.

This input mode is not supported by RadDateTimePicker. You should enter 0-2/1-9/9-9, e.g. digits delimiter digits delimiter digits in order to enter the date. The behavior that you expect can be achieved using RadMaskedTextBox with Standard mask and Mask "##/##/####". In this case you cannot have validation of the input.
 
I hope this helps.

Kind regards,
Peter
the Telerik team

Q3’11
of RadControls for WinForms is available for download (see what's new). Get it today.
0
Robyn
Top achievements
Rank 1
answered on 28 Dec 2011, 12:40 AM
Hi Peter,

You have provided, in part, the solution to this using the DateTimePicker in the other thread I posted:

http://www.telerik.com/community/forums/winforms/calendar-and-datetimepicker/usability-issues-with-date-picker.aspx#1925466 

@Lookoum and others - Please read through the thread I linked to get the solution you need. It's not simple but I find I know have a very solid control without having to use a RadMaskedTextBox.

Thanks for the great support.
0
Lookoum
Top achievements
Rank 1
answered on 28 Dec 2011, 12:02 PM
Hi Robyn,

Thank you very much for the link.
Thanks to the support too ;)

Bye
Asked by
Robyn
Top achievements
Rank 1
Answers by
Lookoum
Top achievements
Rank 1
Peter
Telerik team
Robyn
Top achievements
Rank 1
Share this question
or