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

RadNumericTextBox not allowing zero at start

2 Answers 511 Views
Input
This is a migrated thread and some comments may be shown as answers.
Dorababu
Top achievements
Rank 1
Dorababu asked on 06 Aug 2012, 04:18 PM
Hi all if I enter the text as 012 this is displaying the result as 12, but I would like to have my value as per I entered. What should I do.

This is my design

<telerik:RadNumericTextBox ID="txtbankRoutingNumber" NumberFormat-GroupSeparator=""
             Width="200px" runat="server" Type="Number" MaxLength="9"
            IncrementSettings-InterceptMouseWheel="false" IncrementSettings-InterceptArrowKeys="false">
            <NumberFormat DecimalDigits="0" />
        </telerik:RadNumericTextBox>

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 07 Aug 2012, 03:56 AM
Hi Dorababu,

RadNumericTextBox is for numbers only. Allowing zero's at the start is more like a formatted string. Please use RadMaskedTextBox if you want to preserve leading zeros. Here is an example.

Hope this helps.

Regards,
Princy.
0
Reshma
Top achievements
Rank 1
answered on 24 Apr 2013, 06:56 AM
 <telerik:RadNumericTextBox ID="FaxNo"  Type="Number"
                NumberFormat-GroupSeparator="" runat="server">
                <NumberFormat DecimalDigits="0" AllowRounding="false" />
            </telerik:RadNumericTextBox>

try this.It will allow zero first
Regards,
Reshma
Tags
Input
Asked by
Dorababu
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Reshma
Top achievements
Rank 1
Share this question
or