This is a migrated thread and some comments may be shown as answers.

NumericTextBox with style currency cannot enter negative values

2 Answers 557 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ruud
Top achievements
Rank 1
Ruud asked on 07 May 2020, 11:42 AM

Hi,

I use a numeric texbox control which I have to allow negative values formatted as currency. I use the following formatting options: 
        style: "currency",
        currency: "EUR",
        minimumFractionDigits: 0,
        maximumFractionDigits: 0

 

This displayes the numeric texbox with a nice euro currency symbol. However, when I try to enter a negative value, it will not allow it. I played around with the min attribute, but does not seem to work. When I switch the textbox over to a decimal style it does allow it.Style percentage does not allow for negative values. Can you provide me with instructions on how to allow for negative values in the numeric textbox control for currency style? Thanks again!

 

Regards,

Ruud

2 Answers, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 07 May 2020, 02:00 PM

Hello, Ruud,

Thank you for the details.

I made an example using the same format option and I was able to successfully add negative numbers:

https://stackblitz.com/edit/react-geanjr?file=app/main.jsx

Please let me know if I missed an important detail?

Also, please check if the application is using the latest version of the package.

Regards,
Stefan
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Ruud
Top achievements
Rank 1
answered on 08 May 2020, 02:32 PM

Hi Stefan,

Thanks for that! I upgraded the Kendo packages, and indeed, it works now.

Regards,

Ruud

Tags
General Discussions
Asked by
Ruud
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Ruud
Top achievements
Rank 1
Share this question
or