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

No format if value is below minimun

1 Answer 116 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 11 Mar 2021, 07:28 AM

I have this code below

$("#numeric").kendoNumericTextBox({
                      min: 1,
                        max: 100,
                      decimals: 0,
                      format: "# pieces",
                      spinners: true,
                      restrictDecimals: true
                    });

 

My problem is that if user enter "0", then tab out, value changes to "1" only, not "1 pieces"

So it does not follow the format if the entered value is below the min. No problem if value is more than max.

My version is "2018.3.1017", upgrade is not an option.

Do you have a workaround on how to force to change the display value with format (may be on the onblur event perhaps)?

1 Answer, 1 is accepted

Sort by
0
Accepted
Mihaela
Telerik team
answered on 11 Mar 2021, 01:22 PM

Hello Daniel,

Thank you for providing a code snippet.

Based on the provided information, I have configured a Dojo sample below (with version 2018.3.1017) and it appears to be applying the format after the value has changed (incl. a value smaller than the min value):

https://dojo.telerik.com/IZUtaxuD

Would you please specify the used browser and its version in which the issue can be observed?

Thank you for your cooperation.

 

Regards, Mihaela Lukanova 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/.

Tags
NumericTextBox
Asked by
Daniel
Top achievements
Rank 1
Answers by
Mihaela
Telerik team
Share this question
or