This is a migrated thread and some comments may be shown as answers.

RadMaskedTextBox : Application crash if we try to edit negative value

1 Answer 59 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 02 Feb 2015, 02:03 PM
The issue occurs when we try to edit the negative value in the RadMaskedTextBox control.
Application crash occured with an exception "Input string was not in a correct format."

Sample code given below :

<telerik:RadMaskedTextBox x:Name="NumerictextBox" MaskType="Numeric" MinWidth="100" HorizontalContentAlignment="Right"
                               Mask="n0"  MaskedText="{Binding MaskText}"TextAlignment="Right"  Height="20" Margin="250,62,33,227"/>

Steps to reproduce :
1. Input a negative value in the textbox say, -5678
2. Select value 5678 (NB : Don't select '-' sign) and try to delete

Please let us know the work around.

Thanks in advance
James Xavier

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 05 Feb 2015, 11:49 AM
Hello James,

The RadMaskedTextBox control was obsolete and removed from our suite with the Q2 2014 release. Please, try the new RadMaskedInput controls and let me know if they work for you.

Regards,
Martin
Telerik
 

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.

 
Tags
General Discussions
Asked by
James
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or