MaskedTextBox retyping from specific positions screws up what was already typed

1 Answer 51 Views
MaskedTextBox
CHRISTOPHER
Top achievements
Rank 1
Iron
CHRISTOPHER asked on 20 Apr 2023, 05:34 PM
For instance, if you type in 12/03/1910 11:00 AM and then place your cursor to the left of the "2" hit delete and attempt to type 1, the whole date string gets messed.  Same with any other place in the string.  Is there any setting I can apply to the control which would prevent this behavior?

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 25 Apr 2023, 03:11 PM

Hello, Christopher,

Currently there is no out-of-the-box way to alter the behaviour. A possible approach would be to override the keydown event with custom logic to achieve the requirement.

Let me know if you have any further questions.

Regards,
Martin
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
MaskedTextBox
Asked by
CHRISTOPHER
Top achievements
Rank 1
Iron
Answers by
Martin
Telerik team
Share this question
or