Decimal dos not work with Arabic localization

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.

 


10 Replies 1 reply marked as answer

UD UdhayaKumar Duraisamy Syncfusion Team August 9, 2022 03:36 PM UTC

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



TA Tarik Alkathiri August 10, 2022 05:14 AM UTC

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.



UD UdhayaKumar Duraisamy Syncfusion Team August 10, 2022 04:45 PM UTC

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



TA Tarik Alkathiri replied to UdhayaKumar Duraisamy August 14, 2022 09:21 AM UTC

Please I am waiting for your update.

Thank you very much. 



UD UdhayaKumar Duraisamy Syncfusion Team August 14, 2022 03:51 PM UTC

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



UD UdhayaKumar Duraisamy Syncfusion Team August 16, 2022 09:38 AM UTC

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




UD UdhayaKumar Duraisamy Syncfusion Team September 2, 2022 04:35 AM UTC

Hi Tarik,


We are facing complexity to resolve the reported issue. We will fix the issue in the upcoming 7th September 2022 patch release.


Regards,

Udhaya Kumar D



MM Mohanraj Mathaiyan Syncfusion Team September 8, 2022 01:46 PM UTC

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



TA Tarik Alkathiri replied to Mohanraj Mathaiyan September 10, 2022 02:17 PM UTC

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.


Marked as answer

UD UdhayaKumar Duraisamy Syncfusion Team September 12, 2022 04:44 AM UTC

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


Loader.
Up arrow icon