• Material 3
  • Fluent
  • Bootstrap v5
  • Tailwind CSS
  • High Contrast
Preferences
Theme Selection
Theme Modes
Mode Selection
Touch
Mouse
Localization
*Translated by Google Translator.
Currency

Example of Restrict Decimals in ASP.NET MVC 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 on the restrict decimals configuration can be found in the documentation section.

Transform your ASP.NET MVC web apps today with Syncfusion ASP.NET MVC components
85+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE