You are using the correct approach to restrict the user's input. By creating a custom token you can define a custom list of symbols as a valid input. In your case these symbols are "abcdef1234567890ABCDEF". Also you need to restrict the length of the alpha-numeric string. You can do this by setting the mask to "******"
or you can use our extensions to limit the length of the input. You can read more about our extensions here
After creating the token (by following this article
) you can use modifiers to make the text uppercase only. You can do this by setting the Mask
property of the RadMaskedTextInput
control to ">*6"
. As you can see the ">" sign is escaped and this will uppercase the user's input. I have created a sample project demonstrating the approach. Please take a look at it and let me know if it works for you.
Pavel R. Pavlov
the Telerik team