Completed
Last Updated: 05 Mar 2021 05:34 by ADMIN
Michel
Created on: 03 Mar 2021 16:52
Category: KendoReact
Type: Bug Report
0
NumericTextBox losing format

Hi,

I'm using the NumericTextBox to receive a value stored in a state, it has a percent "p3" format so it display numbers like this "0,000 %". When the state change, the value displayed in the NumericTextBox loses its format. If I click in the field and press space or any other key, the format comes back. The expected result was the NumericTextBox always keeping the format, what can be done in this situation?

NumericTextBox code

This is the textbox when I change the value direct in the field, it works fine

The state is shared between 2 NumericTextBox. if I change the value in the other textbox, it loses the format in this textbox

If I go in this textbox and just hit space, the format comes back

What can be done to keep the textbox format?

 

Thank you

2 comments
Michel
Posted on: 04 Mar 2021 15:26
It worked, thank you Stephan
ADMIN
Stefan
Posted on: 04 Mar 2021 06:49

Hello, Michel,

Thank you for the details.

I made an example with two connected NumericTextBoxes using the same format, and the format was retained after updates:

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

Please let me know if I missed something?

Regards,
Stefan
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.