Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Input > Trouble with RadMaskedTextBox
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Not answered Trouble with RadMaskedTextBox

Feed from this thread
  • Shawn avatar

    Posted on Jun 24, 2011 (permalink)

    Hello,
    I have a data entry field and am using the RadMaskedTextBox control.  My current maks is Mask="999-999".  This works nicely however, there are scenarios where a valid entry could be "1-5", so it is not restricted to 3 characters on each side.  What my user requires is that when they focus on the field, press the button "1" then press the "-" key, it automatically advances the cursor to the right side of the mask.(on the right of the dash) 

    Here is my line of code thus far:

    <

     

     

    telerik:RadMaskedTextBox Mask="999-999" EmptyContent="###-###" Value="{Binding Path=SpecificClaimNumber, Mode=TwoWay}" Visibility="{Binding Path=IsSpecificClaimChecked, Converter={StaticResource booleanVisibilityConverter}}"/>

    I can find no information on how this would be possible.  Any tips are very welcomed!

    -Shawn

  • Iana Tsolova Iana Tsolova admin's avatar

    Posted on Jun 29, 2011 (permalink)

    Hi Shawn,

    You cannot achieve this with RadMaskedTextBox. You would better use a regular ASP:textBox/RadTextBox with RequiredFieldValidator. Another option is to use RadInputManager with RegExpTextBoxSetting and ASP:TextBox.

    Greetings,
    Iana
    the Telerik team

    Consider using RadControls for ASP.NET AJAX (built on top of the ASP.NET AJAX framework) as a replacement for the Telerik ASP.NET Classic controls, See the product support lifecycle here.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Input > Trouble with RadMaskedTextBox