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

RadNumericTextBox problem with decimal places

1 Answer 74 Views
Input
This is a migrated thread and some comments may be shown as answers.
Alfredo
Top achievements
Rank 1
Alfredo asked on 29 Jul 2016, 01:36 AM

Hello.

This is my first post and I am posting because I have a serious problem, the same that the specified in this link http://www.telerik.com/forums/ontextchanged-calling-other-radnumerictextbox, I will explain a bit what is the situation:

I have a Total label and a RadGrid that contains records from a database and one of the columns let you change an amount, when you change the amount textchange event fires recalculates the value to show in Total label, the problem like the guy of the link above is when you change to anotherradnumerictextbox (using mouse or tab key), if i have "123,23" in that radnumerictextbox (where ","  is my decimal separator) it converts the value to "12323,00", I understand what is happening but not how to solve it and this is a problem because it change the Total label taking into account the "12323,00" giving me a greater value than i would expect), i am using telerik version 2013.3.1015.40
answering the question on the libk above

What browser do you use? Chrome last version (52.0.2743.82 m)
What is the culture on your machine and in your server? Español (Mexico) (both), but i am changing application culture depending on user preferences (in this case Español (Costa Rica)
Is it happening in more than one browser? It happen in all browsers
Do you get some JS errors? there are no JS errors
What .Net version are you using? .Net Framework 4.5

 

Thank you in advance for your help.

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 02 Aug 2016, 02:31 PM
Hi Alfredo,

Could you please provide the code declaration of RadNumericTextBox control in order to check how it is configured? You can try to set a decimal separator and group separator to the correct character of the culture and check whether the issue remains. You can find more information how to achieve that in the following help article.

Regards,
Kostadin
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Input
Asked by
Alfredo
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or