Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Input > RadNumericTextBox Decimal Truncation
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Not answered RadNumericTextBox Decimal Truncation

Feed from this thread
  • Tony avatar

    Posted on Jun 24, 2011 (permalink)

    Is there a way for me to have 0's that trail the decimal point to not show up? From what I've seen I either have to allow decimals and have how every many 0's after the decimal or disable the decimals and not be able to enter a decimal number. It would be nice to be able to be able to enter a number and have trailing 0's not show up.

    Thanks,
    Tony

  • Vasil Vasil admin's avatar

    Posted on Jun 29, 2011 (permalink)

    Hi Tony,

    If you set  AllowRounding to "false", trailing zeros after the decimal sign will be not displayed.

    <telerik:RadNumericTextBox runat="server" ID="RadNumericTextBox">
       <NumberFormat AllowRounding="false" />
    </telerik:RadNumericTextBox>

    Greetings,
    Vasil
    the Telerik team

    Consider using RadControls for ASP.NET AJAX (built on top of the ASP.NET AJAX framework) as a replacement for the Telerik ASP.NET Classic controls, See the product support lifecycle here.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Input > RadNumericTextBox Decimal Truncation