I'm working with the Telerik 2011 Q2 WPF controls (the last version we got, although we will be renewing our license soon). I'm trying to put a control on the form for gathering the client's social security number. Initially I used the RadMaskedNumericInput, because that's what I thought I should for SSN. I now realize that was a mistake. Now I believe I have to use the RadMaskedTextInput control. I've tried a Mask value of "###-##-####" and now I'm trying "d3-d2-d4", but I don't know that it makes much difference.
What does make a big difference is what comes from the database (SQL Server 2005) and what goes back to the database. As it turns out, all of the SSN in the database have the "-" between the first 3 digits and the second 2 digits, and between the second 2 digits and the third 4 digits. Thus, if the client had a SSN of 555-12-1212, that is exactly what's stored in the database. That's what's got to be displayed, that's what's got to go back. And of course its stored as a VARCHAR(11) in the database. But when the data gets fetched from the database, what gets displayed in the RadMaskedTextInput control looks like this (using the same ficticious SSN): "555--1-2___"
That's not going to work at all. What am I doing wrong and how do I fix it? Here's the XAML: