Forums

Forums / Developing Portals / Format Currency for Text Field

Format Currency for Text Field

Thread is closed for posting
4 posts, 2 answered
  1. quanganh
    quanganh avatar
    33 posts
    Registered:
    16 Jun 2016
    16 Aug 2016
    Link to this post
    Hello,

    Currently I have some text fields which have currency format. But it display incorrect number.
    e.g,: in CRM : fr.10,000.00 => in sitefinity: 100.000.000,0000 €

    How can we format the text fields same as in CRM ?

    Many thanks,
    Quang Anh
  2. Missing user
    Missing user avatar
    Answered
    16 Aug 2016 in reply to quanganh
    Link to this post
    Hi Quang,

    On those text field widgets, press Edit, go to "Numeric Properties",  Select the display type "Number", and then press "Advanced". You will see a property box named "Custom Mask", this is where you can type in your custom masking. For example  0,00

    Thanks
    Syed
  3. quanganh
    quanganh avatar
    33 posts
    Registered:
    16 Jun 2016
    17 Aug 2016
    Link to this post
    Hello Syed,

    I tried using "custom mask" property but it's not working. I see that we have another property for format number (Precision, MaskedPreset ...)
    Could you please  tell me how to format it to display like this examples: "120.00 CHF", "1'420.15 CHF".

    Many thanks,
    Quang Anh
  4. Missing user
    Missing user avatar
    Answered
    17 Aug 2016
    Link to this post
    Hi Quang,

    You have to modify the template and add stuff to the NumberFormat property on the RadNumericTextBox

    ex. Positive Pattern set to “n CHF”


    Please see more details in the link below;

    http://docs.telerik.com/devtools/aspnet-ajax/controls/input/radnumerictextbox/formatting-numeric-values

    Thanks
    Syed
4 posts, 2 answered