You can achieve your requirement by using the ValueToTextConverter
property of the RadMaskedInput
controls. Also, you can set the Mask
property to "" (empty string) and the TextMode
Furthermore, in your ViewModel you can create a field which will hold the real value and a boolean flag indicating which value you should visualize. Also, you can subscribe to the GotFocus event of the control and visualize the appropriate value based on the boolean flag.
For your convenience I prepared a sample project demonstrating this approach. Please take a look at it and let me know if you heave any other questions.
Pavel R. Pavlov
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.