Completed
Last Updated: 09 Feb 2023 16:45 by ADMIN
ADMIN
Martin Ivanov
Created on: 26 Mar 2015 09:41
Category: MaskedInput
Type: Bug Report
1
MaskedInput: When you hit the Enter key and a number simultaneously the number is removed from the Value of the RadMaskedNumericInput
When you hit the Enter key and a number simultaneously the number is removed from the Value of the RadMaskedNumericInput

Workaround:
Handle the KeyDown event of the RadMaskedNumericInput control, when the Enter key is pressed.

private void INPUT_KeyDown(object sender, KeyEventArgs e)
{
    if (e.Key == Key.Enter)
    {
        if (INPUT.Value.ToString().Length > 0)
        {
            RadWindow.Alert(INPUT.Value.ToString());
        }
        e.Handled = true;
    }
}
0 comments