DateTimePicker moving cursor automatically

2 posts, 0 answers
  1. Ben
    Ben avatar
    18 posts
    Member since:
    Aug 2010

    Posted 13 Oct 2010 Link to this post

    In the DateTimePicker, if the user enters an 11 first, then I would like to assume that they mean November and automatically move them to the day section. Similarly if the user enters a 5 in the day section I'd like to move them to the year section since 5x is not a valid day choice. Additionally, I would like to have the text box section of the DateTimePicker set up with a mask. So that when the user starts typing they see 00/00/0000 and as they type they overwrite the zeros so that there are 8 numbers and two slashes in the DateTimePicker textbox at all times. Is this possible with the DateTimePicker? 
  2. Kaloyan
    Kaloyan avatar
    920 posts

    Posted 18 Oct 2010 Link to this post

    Hello Ben,

    My advice is to use the ParseDateTimeValue event when you want to expose a custom parsing logic. Set the desired date as an argument of the ParseDateTimeEventArge property and mark the IsParsingSuccessful to true. Also the control is not supporting the masked input. You may prefer to use the RadMaskedText box instead. Let us know if you have any further problems.

    Best wishes,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top