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

NumericTextBox Behavior counter to documentation on rounding and decimal places

1 Answer 53 Views
Input
This is a migrated thread and some comments may be shown as answers.
Karl Wilkens
Top achievements
Rank 1
Karl Wilkens asked on 04 Apr 2013, 11:06 PM
Hi,

I have spent hours trying to get RadNumericTextBox to accept something as simple as 1.25. It rounds, or displays an alert. I have reviewed multiple forum posts and the documentation and something this simple seems to be pretty elusive. here is the markup (this is in a RadGrid ItemTemplate that displays in Edit mode). I have tried multiple combinations of the various parameters shown here with no good result. I am only showing the EditItemTemplate for brevity. Any help appreciated. 

 <EditItemTemplate>

                                         <telerik:RadNumericTextBox ID="rtbCMEHours" MaxLength="5" runat="server" Type="Number" MinValue="0.00" MaxValue="100.00" AllowOutOfRangeAutoCorrect="true" ToolTip="Enter the Hours Claimed here." Text='<%#Eval("HoursClaimed") %>' >

                                        <numberformat allowrounding="False" keepnotroundedvalue="False" DecimalDigits="2" ></numberformat>

                                         </telerik:RadNumericTextBox>

                                     </EditItemTemplate>

1 Answer, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 09 Apr 2013, 01:49 PM
Hi Karl,

I tried to reproduce the described behavior in a sample project but was unable to do so. Could you please review my sample and tell us what differs in your case? If you could modify it to reproduce the problem we would be able to give you a precise answer why it is occurring.

All the best,
Angel Petrov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Input
Asked by
Karl Wilkens
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Share this question
or