Thank you for writing to us and sharing your experience with the RadMaskedNumericInput
control. I can see your point regarding the control's implementation, but please have in mind that we're trying to provide a common functionality of all MaskedInput
controls so that they can be used in a large variety of scenarios. We have defined the default values of the MaskedNumericInput
properties based on the most common scenarios in which the control is used by our customers. However, we will definitely take your feedback into consideration and if we see that many customers find it hard to work with the default setup of the control, we'll make sure to update it accordingly.
In the meantime, let me get back to the issue at hand. You are absolutely right that once you enter the edit mode of the MaskedNumericInput
, it displays the placeholder of the empty position and as the applied Mask
requires an input of 5 digits, you can't remove the placeholder. However, with the Q2 2012
release we introduced a new feature in the control that allows you to specify an empty Mask
. This way the control doesn't apply any restrictions on the entered input (apart from the fact that it requires numeric values). And in your case this can help as the control won't display any placeholders because it won't expect a specified number of digits. And as you need to create a control for entering TCP/IP ports, you can apply a restriction to the maximum value of the control and make sure the users won't be allowed to enter an invalid input.
For example you can change your MaskedNumericInput
definition to the following:
<!-- NoMask functionality -->
- the MaskedInputExtensions.Maximum attached property value (you can change it to better fit your needs) - it applies a restriction on the maximum value that can be entered in the control (read more).
- the Mask property value - it is empty and this is why it triggers the 'No-Mask' feature of the control.
I hope this info will help you. Let me know if I can assist you with anything else.
the Telerik team