2 posts, 0 answers
  1. Mateusz
    Mateusz avatar
    14 posts
    Member since:
    Aug 2012

    Posted 04 Dec 2012 Link to this post

    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?
  2. Eyup
    Eyup avatar
    3953 posts

    Posted 07 Dec 2012 Link to this post

    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:

    I hope this will prove helpful.

    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.
Back to Top