RadMaskedTextBox drops numbers when using browser back button

2 posts, 0 answers
  1. Mark Perry
    Mark Perry avatar
    17 posts
    Member since:
    Mar 2010

    Posted 10 Jan 2012 Link to this post

    When I load up the page and apply the appropriate mask to the textbox the data is displayed correctly.
    If I then click another page and then use the browser's back button, the phone number is messed up and missing the last 4 digits while the other  6 are in random places within the mask?
    <telerik:RadMaskedTextBox  ID="txtPhone" runat="server" Width="225px" MaxLength="10" DisplayMask="(###)###-####" Mask="##########" SelectionOnFocus="CaretToBeginning" />

    The issue is in IE 8. We are using 2010.3.1317.35. The control is not wrapped in any AJAX.
  2. Tsvetina
    Tsvetina avatar
    2481 posts

    Posted 11 Jan 2012 Link to this post

    Hello Mark,

    There is indeed a problem with the RadMaskedTextBox control which I notified our developement team about. It seems the control persists the string from the display mask, instead of the value of the control. Our developers will investigate it further, confirm whether it is a bug and if so, fix it.

    In the meantime, you could as a workaround use identical Mask and DisplayMask values, in this scenario there is no such problem.

    Kind regards,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top