radnumeric textbox's value get rounded.

3 posts, 1 answers
  1. Jiju
    Jiju avatar
    57 posts
    Member since:
    Jul 2011

    Posted 16 May 2012 Link to this post

    Hi,
    I have declared a numeric text box as below
    <telerik:RadNumericTextBox ID="RadNumericTextBox1" MaxValue="99999999999999999" runat="server"
            DataType="integer" Type="Number" NumberFormat-AllowRounding="false" NumberFormat-KeepNotRoundedValue="true"
            NumberFormat-GroupSeparator="" NumberFormat-DecimalDigits="0">
    </telerik:RadNumericTextBox>

    when entering a value having length 16 or above, when there is a postback, the value get rounded and displaying the rounded value.
    How can i avoid this issue?

    thanks in advance
    Jiju
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 16 May 2012 Link to this post

    Hi Jiju,

    According to this forum thread RadNumericTextBox does not support numbers that large, and this limitation comes from the javascript numeric parsing. Javascript itself does not support calculations with numbers that large and RadNumericTextBox uses these calculations for parsing, storing and retrieving the entered value.

    Hope this information help.

    Regards,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jiju
    Jiju avatar
    57 posts
    Member since:
    Jul 2011

    Posted 16 May 2012 Link to this post

    hello Princy,
    Thank you very much for your reply. it solved my problem.
Back to Top