Approved
Last Updated: 27 Nov 2017 15:28 by ADMIN
ADMIN
Hristo
Created on: 27 Nov 2017 15:24
Category: Editors
Type: Bug Report
3
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);
        }
    }
}
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments