RadMaskedTextBox : Application crash if we try to edit negative value

2 posts, 0 answers
  1. James
    James avatar
    2 posts
    Member since:
    Nov 2013

    Posted 02 Feb 2015 Link to this post

    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
  2. Martin Ivanov
    Martin Ivanov avatar
    1410 posts

    Posted 05 Feb 2015 Link to this post

    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.


    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.

Back to Top