Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Input > NumericTextBox formatting as you type.
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 NumericTextBox formatting as you type.

Feed from this thread
  • anand avatar

    Posted on Sep 10, 2008 (permalink)

    Is it possible to apply numeric formatting as you type.  I am looking to achieve something similar to the asp.net ajax control toolkit maskedinput.
    http://www.asp.net/AJAX/AjaxControlToolkit/Samples/MaskedEdit/MaskedEdit.aspx

    Or maybe I have to write my own formatter and bind it to the onkeypress.  Wanted to see if it can be done out of the box first.

    Thank you.

  • Plamen Peshev Plamen Peshev admin's avatar

    Posted on Sep 11, 2008 (permalink)

    Hi anand,


    To see more information on the requested functionality, please refer to the following articles.





    Sincerely yours,
    Plamen
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.

  • anand avatar

    Posted on Sep 11, 2008 (permalink)

    Thanks for the reply. I had seen both those articles prior to posting here.  I do not see how I can provided the formatting as the user is typing the input.  The demos show formatting applied after losing focus from the control.  I need to be able to show the same as they are typing also.

    Thanks.

  • Plamen Peshev Plamen Peshev admin's avatar

    Posted on Sep 11, 2008 (permalink)

    Hello anand,

    You can use RadMaskedTextBox control. The RadMaskedTextBox is an enhanced data entry control that uses a mask to distinguish between proper and improper user input. To change the mask that is used to format the value when the masked text box does not have focus (for example, to change the literal strings in the mask), set the DisplayMask property. When a RadMaskedTextBox control is displayed at run time, it represents the mask as a series of prompt characters for the text the user should enter and literal characters for literal strings that are part of the mask. Each mask position is shown with a single prompt character. You can specify the prompt character that the masked text box uses by setting the PromptChar property - review this online demo

    Greetings,
    Plamen
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.

  • ken avatar

    Posted on Mar 24, 2011 (permalink)

    @anand 
    Did you resolve you problem?
    @Telerik
    I get the same problem.
    Example: when user type 85000000 -> lost focus -> then display 85,000,000
    so how can display 85,000,000 without lost focus
    The general: typing -> display
                         1500      ->  1,500
                         30000    -> 30,000
    It looks like RadNumericTextBox with
    EnabledStyle-HorizontalAlign ="Right"
    NumberFormat DecimalDigits="0" GroupSeparator =","
    But RadNumericTextBox can not formated when typing, It only formatting when control lost focus.
    I have try with RadMaskedTextBox but can't find out the way.

     

     

     

  • anand avatar

    Posted on Mar 24, 2011 (permalink)

    I was not able to accomplish with the Rad controls, so i had to go with a jquery alternative
    http://digitalbush.com/projects/masked-input-plugin/

    Hope that helps

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Input > NumericTextBox formatting as you type.