NumericTextBox with style currency cannot enter negative values

3 posts, 1 answers
  1. Ruud
    Ruud avatar
    63 posts
    Member since:
    Oct 2012

    Posted 07 May 2020 Link to this post

    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. Answer
    Stefan
    Admin
    Stefan avatar
    3034 posts

    Posted 07 May 2020 Link to this post

    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.
  3. Ruud
    Ruud avatar
    63 posts
    Member since:
    Oct 2012

    Posted 08 May 2020 in reply to Stefan Link to this post

    Hi Stefan,

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

    Regards,

    Ruud

Back to Top