RadMaskedTextBox textwithliterals is always blank minus mask?

2 posts, 0 answers
  1. Jay
    Jay avatar
    59 posts
    Member since:
    Apr 2009

    Posted 03 Jun 2013 Link to this post

    I've got a masked textbox on a page to add a new contact that no matter what isn't returning any value? Here's the control in the markup:

    <telerik:RadMaskedTextBox ID="txtWorkNumber" runat="server"  CssClass="input_text" Skin="" EnableEmbeddedSkins="false" Width="88%"   ></telerik:RadMaskedTextBox>

    Then on page load I apply the mask based on country, but 99% of the time it's this code:

    strMask = "###-###-####"
    strDMask = "(###) ###-####"
     txtWorkNumber.Mask = strMask
     txtWorkNumber.DisplayMask = strDMask

    SInce we are dealing with a phone number, it's a required field and the value regardless of when I try to read it (tested in multiple places) ended up looking like this

    txtWorkNumber.TextWithLiterals = "--"

    This code used to work, so wondering if it's something that changed since we recently updated to the latest version after being almost a year behind in updates.
  2. Viktor Tachev
    Viktor Tachev avatar
    1784 posts

    Posted 06 Jun 2013 Link to this post

    Hi Jay,

    The behavior you describe was a bug in the ServicePack for Q1 2013 release. It replicates when you have different values for the DisplayMask and Mask properties of a RadMaskedTextBox control. The bug is now fixed as you could see here.

    I would advise you to upgrade to the latest version of the controls. The latest version is from the beta release we had recently.

    After a few weeks we will have major release where this bug fix will be included.

    Viktor Tachev
    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 the blog feed now.
Back to Top