I am using an UltraMaskedEdit. I have looked through the InputMask property documentation but cannot find the prompt character propery for a required Alpha Only (a-z or A-Z). Prompt Characters '&', 'A', 'a', and 'C' allow digits. The '?' prompt character is a letter placeholder but entry is not required. My end goal is tor create a Canadian Postal Code input mask which is of the format 'A#A #A#' - unless something like this already exists and I completely missed it.
My thanks in advance for any help that can be provided.
I have been looking for the same thing. Validating a character that is a letter a-z or A-Z but not a number, which is a required character. It seems strange that such an obvious option is missing. The original post is 4 years old and UltraMaskedEdit is still not providing this option!
Hello,
Isn't the above solution sufficient enough for you?
Did you try it:
private void ultraMaskedEdit1_KeyPress(object sender, KeyPressEventArgs e) { if (Char.IsDigit(e.KeyChar)) e.Handled = true; }
After some research, the "Support of a MaskInput required character letter placeholder" has been determined to be a new product idea. I have sent your idea directly to our product management team.
Our product team chooses new ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested features, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your idea is chosen for development, you will be notified at that time.
Your reference number for this product idea is PI13030051.
If you would like to follow up on your request at a later point, you may contact Developer Support management via email. Please include the reference number of your product idea in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com
Thank you for your request.
The suggested solution to this problem:
private void ultraMaskedEdit1_KeyPress(object sender, KeyPressEventArgs e){ if (Char.IsDigit(e.KeyChar)) e.Handled = true;}
If you have a mask "AA######A" then the first 2 'A's will now accept only letters but the '#' mask will not accept a number because it has been rejected by the key press event. The code could be extended to cope with this but if that was the case you have just ended up writing a custom mask input control to cover missing features in the original (possibly?)