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

[Solved] Decimal places flexibility

1 Answer 130 Views
Input
This is a migrated thread and some comments may be shown as answers.
judo
Top achievements
Rank 1
judo asked on 29 May 2008, 01:50 PM
I'm following up on a discussion in thread http://www.telerik.com/community/forums/thread/b311D-mecat.aspx  .

The issue is that the Input control will truncate a number if more decimal places are entered. PeterK put it better than me:


Input     Desired Result          Actual Result
2              2.00                         2.00                SUCCESS
2.25         2.25                          2.25               SUCCESS
2.245        2.245                       2.25                FAIL

1 Answer, 1 is accepted

Sort by
0
Missing User
answered on 03 Jun 2008, 06:58 AM
Hello jude,

You can use the AllowRounding property.

Here is an example:
            <telerik:RadNumericTextBox ID="RadNumericTextBox1" runat="server"
                <NumberFormat  AllowRounding="false"  /> 
            </telerik:RadNumericTextBox> 


Kind regards,
Plamen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Input
Asked by
judo
Top achievements
Rank 1
Answers by
Missing User
Share this question
or