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

RadMaskedTextBox textwithliterals is always blank minus mask?

1 Answer 83 Views
Input
This is a migrated thread and some comments may be shown as answers.
Jay
Top achievements
Rank 1
Jay asked on 03 Jun 2013, 02:25 PM

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.

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 06 Jun 2013, 08:34 AM
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.

Regards,
Viktor Tachev
Telerik
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.
Tags
Input
Asked by
Jay
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or