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

5 posts, 1 answers
  1. Rod
    Rod avatar
    71 posts
    Member since:
    Jan 2011

    Posted 23 Jul 2013 Link to this post

    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"/>
  2. Answer
    Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 26 Jul 2013 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Rod
    Rod avatar
    71 posts
    Member since:
    Jan 2011

    Posted 26 Jul 2013 Link to this post

    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

  5. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 31 Jul 2013 Link to this post

    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 >>
  6. Rod
    Rod avatar
    71 posts
    Member since:
    Jan 2011

    Posted 31 Jul 2013 Link to this post

    Thank you, Pavel.
Back to Top
UI for WPF is Visual Studio 2017 Ready