• Material 3
  • Material 3 Dark
  • Fluent
  • Fluent Dark
  • Bootstrap v5
  • Bootstrap v5 Dark
  • Tailwind CSS
  • Tailwind CSS Dark
  • Material
  • Bootstrap v4
  • High Contrast
Preferences
Mode Selection
Touch
Mouse
Theme Selection
Localization
*Translated by Google Translator.
Currency
Essential Studio
HOME
All Controls

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

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.

DEMO
SOURCE
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 .