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

How do I make it possible for a user to tab immediately out of the masked text input?

4 Answers 131 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
Rod
Top achievements
Rank 1
Rod asked on 23 Jul 2013, 04:33 PM
I've placed a RadMaskedTextInput control onto a window, which is to be used for storing a user's social security number (including the dashes, it stores it into a SQL Server table as a VARCHAR(11)). However, when the user wants to tab through the control to the next control, because of the way I've declared it in XAML, they have to tab through each section of the social security number. Naturally, they don't want to do that. They'd rather just tab into this control, then immediately tab out of it as they go onto the next control. I'm not sure how to accomplish that. Here's the definition I have for the RadMaskedTextInput:

<telerik:RadMaskedTextInput x:Name="txtSSN" MinWidth="80" Value="{Binding SocialSecurityNo, UpdateSourceTrigger=PropertyChanged}"
                            TextMode="MaskedText" InputBehavior="Replace" SelectionOnFocus="SelectAll" Mask="d3-d2-d4" FontSize="15"
                            FontFamily="Century Gothic" BorderThickness="1" BorderBrush="#FFE3E9EF"/>

4 Answers, 1 is accepted

Sort by
0
Accepted
Pavel R. Pavlov
Telerik team
answered on 26 Jul 2013, 12:09 PM
Hello Rod,

I am happy to tell you that there is an easy way to achieve your requirement. You can try setting the SectionsNavigationMode property of the RadMaskedTextInput control to None.

Please give this approach a try and let me know if it works for you.

Regards,
Pavel R. Pavlov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Rod
Top achievements
Rank 1
answered on 26 Jul 2013, 02:47 PM

This looks very promising, Pavel, but one question. I'm trying to add it to a different application I wrote that uses the RadMaskedTextInput control too, for social security number, but it's having problems. In the XAML I write SectionsNavigationMode, but it doesn't recognize it. Now that particular app is targeting .NET Framework 4.0, could that be the issue? Do I have to use .NET Framework 4.5? Or are the references I have for the Telerik controls too old? Here's what that particular project has:

  • Telerik.Windows.Controls: v4.0.30319
  • Telerik.Windows.Controls.Input: v4.0.30319
  • Telerik.Windows.Data: v4.0.30319

0
Pavel R. Pavlov
Telerik team
answered on 31 Jul 2013, 07:06 AM
Hello Rod,

I am not sure which version of our dlls you actually use, because the provided numbers are the runtime version of our dlls, which is different from the actual version. You might encounter this issue if you are using older that Q3 2011 release of our controls. If you use older version you can try setting the KeyboardNavigation.TabNavigation property instead of the SectionsNavigationMode (read more).

Basically, it is not likely the issue to be caused by the target framework. This is why I recommend you to download our latest official release and give it a try.

Regards,
Pavel R. Pavlov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Rod
Top achievements
Rank 1
answered on 31 Jul 2013, 02:36 PM
Thank you, Pavel.
Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
Rod
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Rod
Top achievements
Rank 1
Share this question
or