Dear Syncfusion support,
I am facing problem entering the decimal in NumericTextBox, when I press the decimal in the keyboard dos not appear in the NumericTextBox in the Arabic mode (Localization).
I remember in the previous versions there was a Locale api when setting it to en all the numbers behaves as (Arabic Numbers) and there was no problem, But in version 0.2.0.39 which I am using now it looks like it is removed, Is there any equivalent to that behavers, I am using grid with inline edit.
Thank you very much for your support.
Hi Tarik,
We suggest you use the Globalization for the Blazor Numeric TextBox Component. Please refer to the below documentation for more details about Globalization.
Documentation : https://blazor.syncfusion.com/documentation/common/globalization
Regards,
Udhaya Kumar D
Thank you for your reply.
I have tried your suggestion but it did not work for me, the problem is when I press the decimal point in the keyboard nothing appear as if it is restricted and this is my code :
<SfGrid @ref="@Grid"
DataSource="ObsDetails"
EnableVirtualization="true"
EnableRtl="true"
EnablePersistence="true">
<GridEditSettings AllowEditing="true" AllowDeleting="true"></GridEditSettings>
<GridEvents OnActionBegin="OnActionBegin" OnActionComplete="OnActionComplete" CommandClicked="OnCommandClicked" TValue="InvoiceDetailsObserveData"> </GridEvents>
<GridColumns>
<GridColumn Field=@nameof(InvoiceDetailsObserveData.TransactionDetailAmount) HeaderText="Price" Format="#,###.#####" TextAlign="TextAlign.Right" Width="120">
<Template>
@{
var det = (context as InvoiceDetailsObserveData);
@string.Format("{0:#,###.#####}", det!.TransactionDetailAmount)
}
</Template>
<EditTemplate>
<SfNumericTextBox TValue="decimal" ShowSpinButton="false" EnableRtl="true"
Value="@((context as InvoiceDetailsObserveData)!.TransactionDetailAmount)"
ValidateDecimalOnType="true"
Format="#,###.#####"
Decimals=5
Min=0
ValueChanged="OnPriceChanged">
</SfNumericTextBox>
</EditTemplate>
</GridColumn>
</GridColumns>
</SfGrid>
Is there a way to use Arabic number (1,2,3 etc.) in the Numeric TextBox regard less of the language chosen?
Thank you very much.
Hi Tarik,
We were able to reproduce the reported issue on our end. We will update the further details in two business days (12th August 2022).
Regards,
Udhaya Kumar D
Please I am waiting for your update.
Thank you very much.
Hi Tarik,
We were able to reproduce the reported issue on our end. We will update the further details in two business days (17th August 2022).
Regards,
Udhaya Kumar D
Hi Tarik,
We have considered the reported issue as a bug from our end and will be fixed in our August 31st patch release. You can track the status of the issue by the below feedback link.
Feedback Link: https://www.syncfusion.com/feedback/37055/decimal-separator-not-working-in-arabic-culture
Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.”
Regards,
Udhaya Kumar D
Hi Tarik,
We are facing complexity to resolve the reported issue. We will fix the issue in the upcoming 7th September 2022 patch release.
Udhaya Kumar D
Hi Tarik Alkathiri,
We have included the fix for the issue "Decimal Separator not working in Arabic culture" with our package version 20.2.48. So, can you please upgrade your package to the latest to resolve the issue from your end.
Sample : https://www.syncfusion.com/downloads/support/common/2953/ze/NumericTBArabic_8bfc0864.zip
Regards,
Mohanraj M
Hi Mohanraj Mathaiyan,
Thank you very much for the update, I will upgrade my package to the latest, and try it.
Many thanks to the Syncfusion Team.
Hi Tarik,
We are happy to assist you. Please get back to us if you need any further assistance on this.
Regards,
Udhaya Kumar D