Custom Text Entry in DateTimePicker

5 posts, 0 answers
  1. Robyn
    Robyn avatar
    17 posts
    Member since:
    Aug 2011

    Posted 18 Dec 2011 Link to this post

    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
  2. Lookoum
    Lookoum avatar
    7 posts
    Member since:
    Nov 2011

    Posted 21 Dec 2011 Link to this post

    Hi every body

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

    Thanks a lot.

    Lookoum
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 22 Dec 2011 Link to this post

    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.
  5. Robyn
    Robyn avatar
    17 posts
    Member since:
    Aug 2011

    Posted 27 Dec 2011 Link to this post

    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.
  6. Lookoum
    Lookoum avatar
    7 posts
    Member since:
    Nov 2011

    Posted 28 Dec 2011 Link to this post

    Hi Robyn,

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

    Bye
Back to Top
UI for WinForms is Visual Studio 2017 Ready