RadnumericTextBox not Truncating

4 posts, 0 answers
  1. Matt
    Matt avatar
    16 posts
    Member since:
    Oct 2008

    Posted 27 Aug 2009 Link to this post

    Anyone know why my numerictextbox won't truncate? It displays a decimal even after the focus is gone?
    Here's the definition. If I allow rounding it will round up to the nearest integer when it loses focus. So the javascript is firing. I'm so confused by this. It seems like a pretty simple thing to do.



    <telerik:RadNumericTextBox ID="DTPNumericTextBox1" runat="server"  
    NumberFormat-DecimalDigits="0" NumberFormat-AllowRounding="false" ></telerik:RadNumericTextBox>


  2. Dimo
    Admin
    Dimo avatar
    8450 posts

    Posted 28 Aug 2009 Link to this post

    Hi Matt,

    Your code snippet works as expected on my side, as well as the online demo:

    http://demos.telerik.com/aspnet-ajax/input/examples/radnumerictextbox/firstlook/defaultcs.aspx

    Can you send us a complete runnable page and specify which RadControls version you are using in this scenario?

    Regards,
    Dimo
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Matt
    Matt avatar
    16 posts
    Member since:
    Oct 2008

    Posted 28 Aug 2009 Link to this post

    Telerik version  2008_3_1314. I know I'm a release behind, maybe 2 at this point. But for the first quarter release this year you made some very significant changes to your styling. We had everything styled to work with the old css classes for a major product release at the beginning of July. We're still in the process of fixing bugs found in the release and don't really want to make the change over just yet.
  4. Dimo
    Admin
    Dimo avatar
    8450 posts

    Posted 28 Aug 2009 Link to this post

    Hi Matt,

    You should have no problems with this version. I just tested it. Actually, I am not aware of a version, which has issues with obeying the DecimalDigits property.

    Are you using ASP.NET themes? Make sure the property is not overriden somewhere.

    If you continue having problems with this scenario, please open a support ticket and send us a runnable sample, which will investigate. Thank you in advance.

    Best wishes,
    Dimo
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top