Unplanned
Last Updated: 27 Nov 2017 15:28 by ADMIN
ADMIN
Hristo
Created on: 27 Nov 2017 15:24
Category: Editors
Type: Bug Report
4
FIX. RadMaskedEditBox - an additional 0 is added to the inputted text if one is using a numeric MaskType, the selection in the editor is 1 and the new number is negative
How to reproduce: also check the attached video
this.radMaskedEditBox1.MaskType = MaskType.Numeric;

Workaround:
private void RadMaskedEditBox1_TextChanged(object sender, EventArgs e)
{
    if (this.radMaskedEditBox1.Text == "-0")
    {
        if (this.radMaskedEditBox1.MaskedEditBoxElement.TextBoxItem.Text.Length == 2)
        {
            //Workaround
            this.radMaskedEditBox1.MaskedEditBoxElement.TextBoxItem.Text = this.radMaskedEditBox1.MaskedEditBoxElement.TextBoxItem.Text.Remove(1, 1);
        }
    }
}
0 comments