Completed
Last Updated: 19 Jan 2023 14:50 by ADMIN

This can be reproduced in the Telerik UI for WPF demo application, demo "MASKED INPUT | Numeric Input" -> More Masked Input Examples.

Problem description:

When (very!) quickly following a numeric key press with a press on the enter key, the input field clears itself, causing a discrepancy between the bound ViewModel property (that is correctly updated to the entered value) and the displayed control (which is now empty). For the end result, see the attached Screenshot.

Steps to reproduce

  1. Clear the input box by pressing the "x" that appears on mouseover or select all text.
  2. Press any numeric key (numblock, non-numblock does not seem to matter)
  3. quickly after, press enter (again, numblock, non-numblock does not matter).
  4. The text below the control should update but the NumericInput control should now be completely empty. This only happens if the time between the two key presses is short enough.
  5.  

The Tab key does not seem to cause this behavior although it causes the binding to update just like the enter button.

What i would expect:

No matter how quickly you press the enter button after entering a value, the control should display the exact value I entered and should never just clear itself.

With best regards
Simon Müller

 

Completed
Last Updated: 07 Oct 2022 12:26 by ADMIN
Release LIB 2022.3.1010 (10 Oct 2022)

The display text (the text displayed when the controls is not focused) doesn't match the FormatString on startup of RadMaskedNumericInput. This happens if the FormatString is "00" and the initial value is set to 0. In this case, the initially displayed text is "0", instead of the expected "00". When you focus the masked input control and then lost the focus, the correct display text is shown.

To workaround this, you can override the CoerceDisplayTextOverride method of RadMaskedNumericInput and replace the returned value in case it is "0".

public class CustomMaskedNumericInput : RadMaskedNumericInput
{
	protected override string CoerceDisplayTextOverride()
	{
		var txt = base.CoerceDisplayTextOverride();
		if (txt == "\00")
		{
			txt = "00";
		}
		return txt;
	}
}

Completed
Last Updated: 21 Feb 2022 15:13 by Scott Waye
Release LIB 2021.3.1206 (6 Dec 2021)
You have the following scenario:

The UpdateValueEvent property is set to "LostFocus". You have bound the Value property of the control to a property from your ViewModel. 


When this property is changed programmatically from negative to positive several times, the Value property of the control isn't updated correctly.

It stays negative when it must stay positive.


Workaround (if applicable):
You can change the UpdateValueEvent property to "PropertyChanged" 

Other Possible workaround (if the bound property is named "Sum")

private void radMaskedNumericInputSum_ValueChanging_1(object sender, Telerik.Windows.Controls.MaskedInput.RadMaskedInputValueChangingEventArgs e)
{
    if (this.Sum != (double)e.NewValue)
    {              
        e.Handled = true;
    }
}
Unplanned
Last Updated: 21 Feb 2022 15:01 by Scott Waye
Provide a way to set .5 and display it like 0.5 , not 5.0 in No-Mask Numeric input.
Completed
Last Updated: 26 Jan 2022 13:29 by ADMIN
Release LIB 2022.1.131 (31 Jan 2022)
Pressing the up and down arrow keys has no effect if the UpdateValueEvent property of the RadMaskedDateTimeInput control is set to LostFocus.
Completed
Last Updated: 13 Dec 2021 11:37 by ADMIN
Release LIB 2021.3.1213 (13 Dec 2021)

This is reproducible with RadMaskedNumericInput and RadMaskedCurrencyInput, when the Mask property is empty.
UpdateValueEvent is LostFocus. FormtString is non default - for example n2 or c2.
When all text is selected and delete key is pressed, the Text will become "$,." or "-." or "($)" - non digit symbols remain in text.

Expected: Text becomes empty string "".

Declined
Last Updated: 16 Oct 2020 08:54 by ADMIN
Created by: Dawid
Comments: 4
Category: MaskedInput
Type: Feature Request
2

Add a property to force only allowing uppercase values, without needing to specify a number of characters or have the underline in the control.

 

This is achievable in code, but it seems unnecessary to go to such lengths for each instance where it is needed.

 

private void bankCode_ValueChanging(object sender, Telerik.Windows.Controls.MaskedInput.RadMaskedInputValueChangingEventArgs e)
        {
            if (e.NewValue == null)
                return;

            string newValue = e.NewValue.ToString();
            if (newValue.Length > 0)
            {
                newValue = newValue.ToUpper();
            }
            this.txtBankCode.ValueChanging -= this.bankCode_ValueChanging;
            this.txtBankCode.Value = newValue;
            this.txtBankCode.ValueChanging += this.bankCode_ValueChanging;
        }
Completed
Last Updated: 21 Sep 2020 11:21 by ADMIN
Release LIB 2020.3.921 (09/21/2020)
In Numeric and CurrencyInput with UpdateValueEvent 'LostFocus' clearing the value places the caret at the end instead of at the decimal point like in 'PorpertyChange' mode.
Unplanned
Last Updated: 15 Sep 2020 12:13 by ADMIN
Created by: Martin Ivanov
Comments: 0
Category: MaskedInput
Type: Feature Request
2
Currently, the SpinMode logic tries to kick-in on MouseWheel, even if the control is not focused. This handles the event which causes unexpected behaviors in some cases. Do not handle the MouseWheel event when the focus is not within the masked input control. You can consider adding a mode that allows you disable the default behavior.
Completed
Last Updated: 20 Feb 2020 13:39 by ADMIN
Release R1 2020 SP

NumericInput or CurrencyInput with value 555666.00.

Select the part '666' press 7. This results is

55|57.00 (caret should be after 7 but is actually shifted to wrong position)

Declined
Last Updated: 04 Feb 2020 15:04 by ADMIN

Dear Telerik Team,

We are facing an issue in MaskedCurrencyInput when using Chinese keyboard. MaskedCurrencyInput control is showing numbers along with other characters that are not numeric. 
In case of typing alphabets, MaskedCurrencyInput is showing suggestion box of chinese characters and also showing alphabetic characters on input area.

This is working fine in English keyboards but in chinese keyboard Chinese Suggestion box and chinese characters are appearing which should not. 

Steps to Reproduce:
1- Use MaskedCurrencyInput of Telerik in XAML WPF.
2- Type alphabets e.g. abcd in MaskedCurrencyInput field box. Chinese Suggestion would appear.

Chinese Suggestion box and chinese characters should not appear. Kindly let me know if it would be resolved or any work around to stop this chinese suggestion box to be opened.


Completed
Last Updated: 20 Jan 2020 11:31 by ADMIN
Release R1 2020
ADMIN
Created by: Dinko | Tech Support Engineer
Comments: 1
Category: MaskedInput
Type: Bug Report
2
In order to reproduce,  you need to focus the control when you run the application.

1.When you press the backspace key it removes the last character and after pressing it a second time the character will be replaced with the removed character.

2. When paste(Ctrl+V) a text in the control, the text is ignoring the current position of the caret and position at the beginning of the control.
Completed
Last Updated: 15 Nov 2019 09:28 by ADMIN
Release LIB 2019.3.1118

CurrenyInput with Indian Culture. Value is 123456789.

Controls shows: "₹ 1,234,56,789.00"

Expected is : "₹ 12,34,56,789.00"

Completed
Last Updated: 30 Oct 2019 08:19 by ADMIN
Release R3 2019 SP1
Setting these properties you can still select the control and change the text inside. 
Declined
Last Updated: 21 Aug 2019 13:29 by ADMIN
Created by: Nebojsa Mancic
Comments: 1
Category: MaskedInput
Type: Feature Request
0

You have to add next features to RadMaskedNumericInput

 - Data binding to object

- Value could be decimal

- Value range, from min to max,

 

 

so this control could be useful in complex data entry form. 

Completed
Last Updated: 05 Jul 2019 08:44 by ADMIN
Release LIB 2019.2.708 (7/8/2019)
When Culture is set to Russian("ru-RU") control shows unexpected "c" symbol and also the property IsCurrenySymolVisible set to False is not respected and the Ruble symbol stays visible.
Completed
Last Updated: 12 Jun 2019 16:49 by ADMIN
Release R2 2019 SP1
The SpinMode property is set to Position and the Mask is like "d" or "#".

 The "d" means that a digit pattern is required , "#" is for non-required digit. 

When the caret is on the empty placeholder and the Key.Up Arrow is pressed, non-numeric characters appear first ("! " then """ then "#" etc).

The expected behavior is that only digits are looped in such mask *digit* positions.
Completed
Last Updated: 19 Apr 2019 15:01 by ADMIN
Release LIB 2019.1.422 (04/22/2019)

RadMaskedCurrencyInput with the following properties:

Mask="#14.2" , FormatString="#,0.##" and IsCurrencySymbolVisible= True

Pressing minus key produces ArgumentException

Message "String cannot be of zero length.\r\nParameter name: oldValue" string

  at System.String.ReplaceInternal(String oldValue, String newValue)
   at System.String.Replace(String oldValue, String newValue)
   at Telerik.Windows.Controls.RadMaskedCurrencyInput.CoerceDisplayTextOverride()
   at Telerik.Windows.Controls.RadMaskedInputBase.CoerceDisplayText()
   at Telerik.Windows.Controls.RadMaskedInputBase.OnValueInternalChanged(DependencyObject d, DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
   at Telerik.Windows.Controls.RadMaskedCurrencyInput.OnIsNegativeValueChanged()
   at Telerik.Windows.Controls.RadMaskedCurrencyInput.set_IsNegativeValue(Boolean value)
   at Telerik.Windows.Controls.RadMaskedCurrencyInput.ToggleNegativeSignKey()

Completed
Last Updated: 16 Apr 2019 08:20 by ADMIN
Release LIB 2019.1.422 (04/22/2019)

This reproduces only in a no-mask scenario (Mask="").

For example, if you enter the codes for º and ª, they appears as 'o' and 'a'. In other words, the bigger version of the symbol.

Here you can find an alt codes reference list: https://www.alt-codes.net/

Completed
Last Updated: 08 Apr 2019 11:24 by ADMIN
Release LIB 2019.1.408 (04/08/2019)
The control wrongly parse the entered value in cultures that have a comma for a decimal separator
1 2 3 4 5 6