RadMaskedEditBox - (2019.3.903.40) - Text property not respecting numeric mask formatting on Up, Down keys
To repeat the bug create the RadMaskedEditBox and set the next properties:
this.radMaskedEditBox1.Mask = "N0";
this.radMaskedEditBox1.MaskType = MaskType.Numeric;
Enter the 111 in the editor. With the up/down keys set all of the values to 0.
Expected value is 0, got 000.
I have also updated your Telerik points.
Currently, the possible solution that I can suggest is to handle the MaskedEditBoxElement.TextBoxItem.TextBoxControl.PreviewKeyDown event and initialize the value if it is currently set to null:
this.radMaskedEditBox2.MaskedEditBoxElement.TextBoxItem.TextBoxControl.PreviewKeyDown+=TextBoxControl_PreviewKeyDown;
private void TextBoxControl_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e)
{
if (this.radMaskedEditBox2.Value==null)
{
this.radMaskedEditBox2.Value = 0;
}
}
I hope this information helps. If you need any further assistance please don't hesitate to contact me.
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
This also
this.radMaskedEditBox1.EnableNullValueInput = true;
this.radMaskedEditBox1.Mask = "D4";
this.radMaskedEditBox1.MaskType = MaskType.Numeric;
this.radMaskedEditBox1.Value = null;
Start writing 1 (the caret is where the read line is)
Then 234