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

RadNumericTextBox

1 Answer 43 Views
Input
This is a migrated thread and some comments may be shown as answers.
Mateusz
Top achievements
Rank 1
Mateusz asked on 04 Dec 2012, 03:34 PM
Hi i have a problem formatting my currency.
i have set the culture to polish and type to currency ( i want to dynimc change cultures). On the client side the text box displays properly the format (i mean depending on the culture - the number divided by . or , and the currency) but on the server side. This were the problem begins:

When i get the text from the textbox (for polish) despite i have entered a number in a format like this 555 555,00 i get using mynumerictextbox.Text instead of 555 555,00 a 555 555.00
and when i try to insert text to textbox it changes the 55,55 to 5555.
Is there any whay to make it work the same way as it displays data on the client side?

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 07 Dec 2012, 12:10 PM
Hi Mateusz,

Please note that on server side the RadNumericTextBox operates with double type values. You can access and format it according to your own preferences and culture when casting to string. Check this MSDN article for more information:
http://msdn.microsoft.com/en-us/library/0c899ak8.aspx

I hope this will prove helpful.

Regards,
Eyup
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
Mateusz
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or