Only 3 decimals can be entered

1 Answer 61 Views
NumericTextBox
Ewald
Top achievements
Rank 1
Iron
Ewald asked on 10 Oct 2023, 02:36 AM

I want to be able to specify more than 3 decimals in the NumericTextBox. I can do that when I specify the step and format, but in that case the textbox will always show the trailing zeros. 

Is it possible to just define the step to '0.00001' to be able to enter 5 decimals without using the format?

1 Answer, 1 is accepted

Sort by
0
Accepted
Konstantin Dikov
Telerik team
answered on 10 Oct 2023, 12:45 PM

Hello Ewald,

For achieving the desired behavior you can pass NumberFormatOption instead of a string format, where you can specify the minimum and maximum fraction digits:

Here is a simple example demonstrating how you can set minimum decimals to 2, but still allow more to be added:

Hope this helps.

 

Regards,
Konstantin Dikov
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources!

Tags
NumericTextBox
Asked by
Ewald
Top achievements
Rank 1
Iron
Answers by
Konstantin Dikov
Telerik team
Share this question
or