Hello Peter Staev,
Thank you for your feedback. Going over the issues:
Problem 1: This error is shown because of the mask. The "n"
token is a required one, so the position of this token has to be filled (not empty). Perhaps the token that you are looking for is "#"
, which is a not required digit token.
Problem 2 and 3 concern the InputBehavior
property. As you are using a numerc input, you should probably be using the Insert option. Numeric values (as in the RadMaskedTextBox) are being inserted from right to left. In contrast, text values are being input from left to right.
Problem 4: The text when the control is focused is not necessarily the output text that you would get. The TextMode
property controls whether the output text (the Text proeprty) would include the placeholder characters. Setting it to PlainText
(as in your code snippet) you should not be seeing the placeholders. Moreover, you have an option to use an IValueConverter (ValueToTextConverter
property) as well as the FormatString
property, which uses the standard and custom numeric formatting strings. All of these would affect the value of the Text property. The only way you would get placeholders in the text value if you used the MaskedText
option for the InputBehavior.
Problems 5 through 8 are again correlated to 2 and 3. The Replace
mode of the InputBehavior will replace the character at the caret's position with the new characters. When you select all of the text, the caret is positioned at the beginning of the control. Pressing any number at that position will be positioned at the first positions from left to right.
According to your description and setup, I believe the most suitable configuration would be the following:
Please let me know if that setup is what you are looking for.
the Telerik team