Datagrid will not accept a negative number

I am building a Blazor web app in Visual Studio.  I have a datagrid that displays information about yearly expenses.  I would like to enter a negative number to indicate an expense is really an income.  However, when I enter the negative number in the form of, say, "-100" and press "enter"  the minus sign disappears and the number is shown as positive.  However, I can create a negative entry if i start from zero use the down arrow to move the value to below zero.

Why can't I enter a negative number using the keyboard minus sign?


2 Replies

NP Naveen Palanivel Syncfusion Team November 5, 2024 02:54 PM UTC

Hi Dennis,

We have considered this issue "Numeric textbox doesn’t accept negative sign" as a bug from our end, and the fix for the issue will be included in our upcoming weekly release which is expected to be scheduled on November 12th, 2024.


You can now track the status of the feedback through the below link,


Feedback link: https://www.syncfusion.com/feedback/62767/numeric-textbox-doesnt-accept-negative-sign 


Regards,

Naveen



PS Prathap Senthil Syncfusion Team November 18, 2024 04:42 AM UTC

Thanks for your patience,

We are glad to announce that, we have included the fix for the issue “Numeric textbox doesn’t accept negative sign” in our Volume 3 SP 27.2.2 release.  So please upgrade to our latest version of Syncfusion NuGet package to resolve the reported issue. Please find the NuGet package for the latest fixes and features below.


NuGet: https://www.nuget.org/packages/Syncfusion.Blazor.Grid


Root Cause: The change handler was triggered when selecting the autofill. so the value with the special character was passed to the parse method.

Corrective Actions Taken:  Now the issue by finding the value string containing a special character and replacing it with empty.

We thank you for your support and appreciate your patience in waiting for this release.


Loader.
Up arrow icon