RadNumericTextBox Removes the first 0's

2 posts, 0 answers
  1. Chamira
    Chamira avatar
    78 posts
    Member since:
    Nov 2007

    Posted 11 Dec 2008 Link to this post

    How can i prevent that from happening

    say for example if someone enters a value like 09321 ( zip code ) the box removes the first 0.. and displays only 9321

    thanks in advance
  2. Dimo
    Admin
    Dimo avatar
    8457 posts

    Posted 11 Dec 2008 Link to this post

    Hi Chamira,

    RadNumericTextBox is for numbers only. 09321 is more like a formatted string. Please use RadMaskedTextBox if you want to preserve leading zeros. Here is an example:

    http://demos.telerik.com/aspnet-ajax/Input/Examples/RadMaskedTextBox/DisplayFormat/DefaultCS.aspx


    Best wishes,
    Dimo
    the Telerik team

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