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

radnumeric textbox's value get rounded.

2 Answers 90 Views
Input
This is a migrated thread and some comments may be shown as answers.
Jiju
Top achievements
Rank 1
Jiju asked on 16 May 2012, 10:25 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 16 May 2012, 11:09 AM
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.
0
Jiju
Top achievements
Rank 1
answered on 16 May 2012, 11:44 AM
hello Princy,
Thank you very much for your reply. it solved my problem.
Tags
Input
Asked by
Jiju
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Jiju
Top achievements
Rank 1
Share this question
or