This is a migrated thread and some comments may be shown as answers.

RadNumericTextBox Removes the first 0's

1 Answer 241 Views
Input
This is a migrated thread and some comments may be shown as answers.
Chamira
Top achievements
Rank 1
Chamira asked on 11 Dec 2008, 11:23 AM
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

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 11 Dec 2008, 11:45 AM
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.
Tags
Input
Asked by
Chamira
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or