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

DateTimePicker moving cursor automatically

1 Answer 83 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
Ben
Top achievements
Rank 1
Ben asked on 13 Oct 2010, 06:00 PM
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? 

1 Answer, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 18 Oct 2010, 01:03 PM
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,
Kaloyan
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
Tags
DateTimePicker
Asked by
Ben
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Share this question
or