RadzenNumeric Percentage Formatting Bug

I have this RadzenNumeric component:

<RadzenNumeric TValue="decimal?" Format="p" @bind-Value="@myValue"/>

When I input a value, say 23, it gets "formatted" to 2300,00 %.
Every time the value is changed, the result somehow gets multiplied by 100.

I would expect the formatted result to be 23,00% ( or at least 23%).

This should be easily reproducable on a fresh project.
Thanks for any help
Tomas

1 Like

In my opinion 0.23 is 23.00%:

1 Like

Thanks for the quick reply!

Although I think it might be a bit confusing for the user, especially when trying to edit the value (when editing 56,00% to say 57,00%, the result gets multiplied - you need to write 0.57 again to get the correct result). But in my case it is alright as it is.

So, problem solved! :slight_smile:

You might need to check Mask components instead Numeric, might be more suitable for your expectations.

Hmm, I think maybe there is a misunderstanding of what's happening here?

If you make a RadzenNumeric input and it displays "30%", and you delete the 3 and replace it with a 4 so it instead says "40%", then it will suddenly change the "40%" to "4,000%" when you focus another element.

We face the same issue, we want our users to be able to type e.g. 30% instead of 0.30 since we display the percentages as xx% and not 0.xx.

You can check my last reply in this thread. Numeric component is for numbers that are formatted later using string format options provided by the .NET.