We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to change or remove currency symbol?

Hi,

I am using CurrencyTextBoxFor in my project I don't see any method / way to change the currency symbol,
Is there any way to change or remove currency symbol?

1 Reply

FP Francis Paul Antony Raj Syncfusion Team December 9, 2015 10:45 AM UTC

Hi Manish,


Thanks for contacting Syncfusion support.


Yes, you can change the currency symbol to desired localization. For that you need to add the script file of appropriate localization and then add the Locale property in the sample. Please refer to the following code snippet.

<script src="~/Scripts/cultures/globalize.culture.de-DE.min.js"></script>

<script src="~/Scripts/cultures/globalize.culture.en-US.min.js"></script>

<script src="~/Scripts/cultures/globalize.culture.es-ES.min.js"></script>

<script src="~/Scripts/cultures/globalize.culture.fr-FR.min.js"></script>



@Html.EJ().CurrencyTextBoxFor(x => x.currency).Locale("fr-FR").ShowRoundedCorner(true).Value(500)



Since numerictextbox and currencytextbox has same propertied, methods, events, If you don’t need any currency symbol in the textbox, you can use NumericTextBoxFor to display the digits. For your convenience, we have attached the sample in the following link.

http://www.syncfusion.com/downloads/support/forum/121361/ze/CurrencyTextboxFor372770496

To know more about CurrencyTextBox control, please refer to the getting started link as mentioned below,

http://help.syncfusion.com/aspnetmvc/currencytextbox/overview

For CurrencyTextBox properties, methods, and events, refer to the below link:

http://help.syncfusion.com/js/api/ejtextboxes


Regards,

Francis Paul A


Loader.
Up arrow icon