RadNumericTextBox not allowing zero at start

3 posts, 0 answers
  1. Dorababu
    Dorababu avatar
    95 posts
    Member since:
    May 2012

    Posted 06 Aug 2012 Link to this post

    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" />
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 06 Aug 2012 Link to this post

    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.

  3. DevCraft R3 2016 release webinar banner
  4. Reshma
    Reshma avatar
    1 posts
    Member since:
    Mar 2013

    Posted 24 Apr 2013 Link to this post

     <telerik:RadNumericTextBox ID="FaxNo"  Type="Number"
                    NumberFormat-GroupSeparator="" runat="server">
                    <NumberFormat DecimalDigits="0" AllowRounding="false" />

    try this.It will allow zero first
Back to Top