Hello,
I have a problem with the RadMaskedTextInput-Control.
When I set the UpdateValueEvent-Property to LostFocus, then the input isn't converted to UpperCase anymore.
My xaml looks like this:
<
telerik:RadMaskedTextInput
Width
=
"140"
Height
=
"22"
IsClearButtonVisible
=
"False"
InputBehavior
=
"Replace"
Mask=">X8"
SelectionOnFocus="Unchanged"
TextMode="MaskedText"
UpdateValueEvent="LostFocus"
Value="affeaffe"/>
I defined a ValidationRule to allow only Hex-Value for Input:
public class HexToken : ITokenValidationRule
{
public bool IsRequired
{
get { return false; }
}
public bool IsValid(char ch)
{
return ValidChars.Contains(ch);
}
public char Token
{
get { return 'X'; }
}
public TokenTypes Type
{
get { return TokenTypes.AlphaNumeric; }
}
private string myValidChars = "0123456789abcdefABCDEF";
public string ValidChars
{
get { return myValidChars; }
}
}
Can you help me with this plz?
regards,
Tobias