
RadNumericTextBox
is not working properly when culture changed to French - It increases extra zeros.
<EditItemTemplate>
<telerik:RadNumericTextBox ID="SearchAreaTopLeftXRadNumericTextBox" Runat="server"
Text='<%# Bind("SearchAreaTopLeftY") %>'
Skin="Office2007" MaxLength="6" MaxValue="999.99" MinValue="0" Width="80px" LabelCssClass=""
meta:resourcekey="SearchAreaTopLeftXRadNumericTextBoxResource1">
<NumberFormat DecimalDigits="2" GroupSeparator="" />
</telerik:RadNumericTextBox>
</EditItemTemplate>
For e.g. Lets say there is a decimal column "SearchAreaTopLeftY" and it has a value 1.00 (in en-US culture)
when we switch to French culture (fr-FR) its value becomes 1,00 and that is valid as in french culture period is represented by comma.
The problems comes when we edit the column we find a value 100,00 instead of 1,00 in RADNumericTextBox. I don't know from where it is added extra zeros.
Also while updating it gives an error:
=========================================================================================================
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; MS-RTC LM 8; InfoPath.2)
Timestamp: Fri, 28 Aug 2009 06:25:56 UTC
Message: Sys.WebForms.PageRequestManagerServerErrorException: Input string was not in a correct format.
Line: 15
Char: 9278
Code: 0
URI: http://localhost/PIPWeb/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl00_RadScriptManager_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3afr-FR%3a94b8a2b4-5efc-4f4c-9641-d912b698978d%3a52817a7d%3a67c678a8%3bTelerik.Web.UI%2c+Version%3d2008.3.1125.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3afr-FR%3afd794f69-50b6-4e80-a52c-60fb1a05429c%3aa9723048%3a393f5085%3a9703c1f0%3aa3f85c94%3a819163f9%3a39249aa4%3a577694e5%3a34f9d57d%3a4b6f7e66%3a6dd34527%3a665c7bcf%3ac6335cbd
========================================================================================================
I am using AJAX RadGrid and Telerik.Web.UI version is 2008.3.1125.35.
Please help me out :)
Thanks - Hemant
8 Answers, 1 is accepted

Thanks - Hemant
I would suggest you to try to bind the numeric textbox by its DbValue property instead of its Text property.
So your code should look something like this:
<telerik:RadNumericTextBox ID="SearchAreaTopLeftXRadNumericTextBox" Runat="server" |
DbValue='<%# Bind("SearchAreaTopLeftY") %>' |
Skin="Office2007" MaxLength="6" MaxValue="999.99" MinValue="0" Width="80px" LabelCssClass="" |
meta:resourcekey="SearchAreaTopLeftXRadNumericTextBoxResource1"> |
<NumberFormat DecimalDigits="2" GroupSeparator="" /> |
</telerik:RadNumericTextBox> |
Using similar declaration with French (fr-FR) and US (en-US) cultures worked as expected on my side.
I hope this helps.
Regards,
Martin
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.

Martin now i am facing a different error while updating decimal values through this NumericTextBox while in French culture. My problem is same as given under link:
http://www.telerik.com/community/forums/aspnet/ajax/radajax-problem-in-firefox-3.aspx
Please Help!!!
Server Error in '/' Application. |
Input string was not in a correct format. |
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. |
Exception Details: System.FormatException: Input string was not in a correct format. |
Source Error: |
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace: |
[FormatException: Input string was not in a correct format.] |
System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +2755599 |
System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +112 |
System.Web.UI.WebControls.ImageButton.LoadPostData(String postDataKey, NameValueCollection postCollection) +138 |
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) +12 |
System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +661 |
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1194 |
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433 |
Input string was not in a correct format.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.FormatException: Input string was not in a correct format.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[FormatException: Input string was not in a correct format.]
System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +2755599
System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +112
System.Web.UI.WebControls.ImageButton.LoadPostData(String postDataKey, NameValueCollection postCollection) +138
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) +12
System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +661
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1194
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
Server Error in '/' Application. |
Input string was not in a correct format. |
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. |
Exception Details: System.FormatException: Input string was not in a correct format. |
Source Error: |
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace: |
[FormatException: Input string was not in a correct format.] |
System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +2755599 |
System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +112 |
System.Web.UI.WebControls.ImageButton.LoadPostData(String postDataKey, NameValueCollection postCollection) +138 |
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) +12 |
System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +661 |
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1194 |
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433 |
Regards - Hemant
The forum thread you quote provides some suggestions about resolving this issue. Please let me know if you tried to follow these recommendations. In case they are useless in your scenario I would suggest you to send us a simplified sample project demonstrating the erroneous behaviour.
Regards,
Martin
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.

Would you elaborate in more detail what is not working? What is the behavior that you are observing and what is the expected result? Please describe the scenario you are trying to implement.
I would appreciate it if you could provide your markup with the related code-behind.
Regards,
Viktor Tachev
Telerik
See What's Next in App Development. Register for TelerikNEXT.

<telerik:RadNumericTextBox ID="Test" Runat="server" width = "125px" Type="Number" SelectionOnFocus="SelectAll">
<NumberFormat GroupSeparator="." />
</telerik:RadNumericTextBox>
I was just trying to use the default properties such as selectionOnfocus = "selectAll", GroupSeparator, etc. But none of them worked until i added Page_Init() event in code behind. Do you have any idea of impact of Page_Init() event on the above code ?
Would you open the browser console by pressing F12 and see if there are any errors listed there? If there are JavaScript errors on the page they will prevent the client-side scripts for RadNumericTextBox from working properly.
With this said, the behavior you describe seems rather strange. I tried to replicate it, however, I was unable to. For reference I am attaching a sample project I used for testing. It is working as expected on my end. Give it a try and let me know how it works for you.
I would appreciate it if you can describe what needs to be modified in the project so that the issue is reproduced.
Regards,
Viktor Tachev
Telerik
See What's Next in App Development. Register for TelerikNEXT.