SfNumericTextBox: Need to remove the culture currency symbol and allow 2 decimals

In the code below, if I use "Format=c2" it works fine and also display the currency symbol, as expected, but  when I change the culture from "en-us" (the one here) to "es" or "pt" the currency symbol does change accordingly but it does not allow to enter decimals anymore.

For example, if the culture is "en-us" and I type 110.25 in the box and then tab out it will display $110.25 but if I change the culture to "pt" (or "es")  and try to do the same it will not accept the decimal  so it will display 

 R$ 11.025.00 for "pt" or the Euro symbol for "es"

decimal? amount;

 SfNumericTextBox TValue="decimal?" Format="c2" Decimals="2" @bind-Value="@amount"  



3 Replies 1 reply marked as answer

DR Deepak Ramakrishnan Syncfusion Team September 30, 2021 03:22 PM UTC

Hi Ben, 
 
Greetings from Syncfusion support. 
 
 
We have validated the reported issue and found that the issue not get reproduced in our end . We suspect that you have used ‘en-us’ decimal separator (‘ . ‘) in Portuguese and Spanish culture . For those cultures comma (‘ ,’)  is the decimal separator and dot (‘.’) is the thousand separator  . We have also prepared sample for your reference . 
 
 
 
 
Kindly revert us if you have any concerns in it. 
 
Thanks, 
Deepak R. 


Marked as answer

BJ Ben Junior replied to Deepak Ramakrishnan October 4, 2021 02:39 PM UTC

Hi  Deepak R.

Even though the problem was unrelated to your component, you still toke the time to answer my question and explained what was the issue. 

Thanks so much. All the badges Syncusion received, including "Best Support" are indeed well deserved.  

Sincerely,

Ben Junior




DR Deepak Ramakrishnan Syncfusion Team October 5, 2021 07:26 AM UTC

Hi Ben 
 
 
Thanks for your update. 
 
We are glad that your requirement has fulfilled . We are always happy to assist you if you need any further assistance. 
 
Thanks, 
Deepak R. 
 


Loader.
Up arrow icon