Hi,
I'm experiencing some issues with RadMaskedTextBox. I'm using this mask: "(###) ###-#### #######". The last 7 numbers being for extension numbers. I understand that there are 4 different options that provide differing values in my backend .ascx file: Text / TextWithLiterals / TextWithPrompt / TextWithPromptAndLiterals. Everything works as expected when following the mask from left-to-right.
But weird things are happening when the user inputs in the middle of the mask: When I debug my RadMaskedTextBox properties in C#, all of these 4 options are ignoring the last 7 numbers.
First: Is it a supported feature of RadMaskedTextBox to allow the user to input in the middle of a mask?
If no ... what's the best workaround?
If yes ... how do I access the proper value?
Test values on front-end input:
- (555) 555-5555 _534___
- (555) 555-5555 _54__2_
- (555) 555-5555 ____2__
When inspecting the input, there are 4 values on front-end:
- validationText: "(555) 555-5555 2"
- valueAsString: "(555) 555-5555 ____2__"
- valueWithPromptAndLiterals: "(555) 555-5555 ____2__"
- lastSetTextBoxValue: "(555) 555-5555 ____2__"
In the backend, all of these values are as follows:
- Text: "5555555555"
- TextWithLiterals: "(555) 555-5555"
- TextWithPrompt: "5555555555_______"
- TextWithPromptAndLiterals: "(555) 555-5555 _______"
I cannot find a single solution to allow the user to input a number in the middle of the mask. All the front-end values of the input seem to allow for the user to input in the middle of the mask. But why aren't ANY of these values sent back to C#? The only value I can find that doesn't ignore the extension is LastSetTextBoxValue - but this value is inaccessible.
- LastSetTextBoxValue: "(555) 555-5555 ____2__"
See images attached.