Example of Restrict Decimals in ASP.NET Core Numeric Textbox Control

Numeric Textbox
Restrict Decimals

This sample demonstrates the decimal functionalities of the Numeric TextBox. Type a value in the input element to change dynamically, and it allows maximum of 3 decimal digits.

Numeric TextBox
Percentage TextBox
Currency TextBox

The NumericTextBox provides an option to restrict the number of decimal values, by using the decimals property. To restrict the number of decimal values on typing, use the decimals and validateDecimalOnType properties.

More information about NumericTextBox can be found in this documentation section.

Transform your ASP.NET Core web apps today with Syncfusion® ASP.NET Core components
100+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE
opens in a new tab