How to remove decimal point from RadNumericInput?

4 posts, 0 answers
  1. Hadar Kaufman
    Hadar Kaufman avatar
    18 posts
    Member since:
    Feb 2009

    Posted 17 Feb 2009 Link to this post

    when I type 30 i get: 30.00. How can I leave it 30?
  2. Dimo
    Admin
    Dimo avatar
    8450 posts

    Posted 17 Feb 2009 Link to this post

    Hello Hadar,

    Please refer to this help article for all the information you need:

    http://www.telerik.com/help/aspnet-ajax/input_radnumerictextboxformatting.html

    Kind regards,
    Dimo
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. AJ
    AJ avatar
    8 posts
    Member since:
    Nov 2007

    Posted 16 Jun 2009 Link to this post

    A slightly different twist on this. Is there any way to prevent the user from entering the decimal point when he's typing the numer in? Sort of the way the numeric textbox prevents alpha chars from being entered.

    thanks
  4. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 16 Jun 2009 Link to this post

    Hello AJ,

    You can handle the OnKeyPress client-side event of RadNumericTextBox and cancel the input if the pressed key is the undesired one.

    I hope this helps.

    Regards,
    Iana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top