Completed
Last Updated: 13 Nov 2015 11:55 by ADMIN
ADMIN
Hristo
Created on: 24 Aug 2015 07:58
Category: Editors
Type: Bug Report
0
FIX. RadMaskedEditBox - when MaskType is set to numeric and Mask is set to currency (C2), pressing '-' when the caret is at the beginning of the text box causes exception
Workaround: 
public Form1()
{
    InitializeComponent();
    this.radMaskedEditBox1.MaskedEditBoxElement.TextBoxItem.KeyPress += TextBoxItem_KeyPress;
}

private void TextBoxItem_KeyPress(object sender, KeyPressEventArgs e)
{
    if (e.KeyChar == '-')
    {
        this.radMaskedEditBox1.MaskedEditBoxElement.TextBoxItem.SelectionStart = this.radMaskedEditBox1.MaskedEditBoxElement.TextBoxItem.Text.Length;
    }
}
0 comments