Hello,
I'm building an application that uses the Numeric TextBox to display a currency value. The currency is able to be selected and changed, using the `Format` parameter built into the Numeric TextBox component. However, I'm not seeing the ability to display the comma (,) separator for regions, like Europe, that use the comma separator instead of the decimal (.) seperator.
I am also specifying the input type of `tel` by using the `HtmlAttributes` parameter, and users are not able to use the comma separator.
How can I dynamically display the separator based on region selections?
Thanks!
Hi Christopher,
Thank you for reaching out to us. We have validated the reported issue with adding the tel attribute via HTML and have confirmed that the decimal separator commas are displayed correctly according to their respective regions. Please refer to the attached sample and the accompanying gif image for further reference.
If you are still experiencing the issue, we kindly request the following details to assist you further:
Thank you for your cooperation. We look forward to resolving this issue promptly.
Regards,
Yohapuja S
Hello,
Thank you for supplying a sample. In my application, I'm actually using the `Currency` parameter to change the currency that is displayed. Format is always set to `c2`.
Do I need to set SupportedCultures for this to work? The Currency symbol displays as intended, but the separator does not.
<SfNumericTextBox @bind-Value="@Item.Amount" Placeholder="Amount" FloatLabelType="@FloatLabelType.Auto" Min="0" Currency="@Item.ISO4217SymbolCode" Format="c2" HtmlAttributes="@(new Dictionary<string, object>{{"type", "tel"}})"/>
Hi Christopher,
We have validated your requirement regarding the use of commas as decimal separators. By default, our components are rendered in English culture, where the decimal separator is a dot. To display the decimal separator as a comma, you need to switch to a culture that uses commas as decimal separators. Kindly check out the below gif image for further reference.
For detailed instructions on achieving localization, please refer to the following documentation:
Documentation: https://blazor.syncfusion.com/documentation/common/localization#localization-of-syncfusion-blazor-components
If the above information doesn’t fully meet your expectations, we kindly request you to share more details about your requirement. Additionally, if possible, please share the numeric textbox sample with us, or provide a video illustration of the issue. This will help us to better understand and address your specific needs. Thank you for your cooperation and patience.
Regards,
Yohapuja S