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

RadnumericTextBox not Truncating

3 Answers 58 Views
Input
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 27 Aug 2009, 08:35 PM
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>


3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 28 Aug 2009, 06:53 AM
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.
0
Matt
Top achievements
Rank 1
answered on 28 Aug 2009, 01:07 PM
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.
0
Dimo
Telerik team
answered on 28 Aug 2009, 03:01 PM
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.
Tags
Input
Asked by
Matt
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Matt
Top achievements
Rank 1
Share this question
or