Unplanned
Last Updated: 08 Dec 2016 09:52 by ADMIN
ADMIN
Martin Ivanov
Created on: 18 Mar 2016 13:32
Category: MaskedInput
Type: Bug Report
1
MaskedInput: The combination Ctrl+C produces a special symbol in Silverlight that replaces the selected value
The key combination Ctrl+C replaces the selected text with a special symbol. This is reproducible only if the Ctrl+C opens the Silverlight dialog that asks you if you want to allow cliboard operations. Also, the Mask should be set to an empty string.

Workaround:
Subscribe for the ValueChanging event of the masked input control and if the new value equals one of the special characters from the ASCII table (you can get the character using the following syntax '(char)3' ) then handle the event.

void maskedInput_ValueChanging(object sender, RadMaskedInputValueChangingEventArgs e)
       {
           if (e.NewValue != null && ((string)e.NewValue).Length == 1 && ((string)e.NewValue)[0] == (char)3)
           {
               e.Handled = true;
           }
       }
0 comments