Numeric textbox with min/max values, step, and formatted display.
As all Radzen Blazor input components the Numeric has a Value property which gets and sets the value of the component. Use @bind-Value to get the user input.
Value property can be used to set the value of the component and Change event to get the user input.
Use the Min and Max properties to constrain numeric input within a specific range.
Use the Placeholder property to display hint text and Step to define increment/decrement intervals.
Use ShowUpDown="false" to hide the increment/decrement buttons and display only the text input.
Use the Format property to apply culture-specific number formatting to the displayed value.
Use the InputAttributes property to customize text alignment and other HTML input attributes.
Use the ConvertValue property to implement custom value conversion logic for specialized numeric types.
Types that can be converted from a string, via a TypeConverter or assigning ConvertValue, get basic support from Numeric. If the type implements a TypeConverter that can convert to/from decimal, then Step and Min/Max are supported. If the type implements IFormattable, Format strings will be passed to it.
Temperature type that implements IFormattable. Value in Celsius: 50.50 °CDollars type that provides a TypeConverter, therefore Min, Max, and Step are supported.The following keys or key combinations provide a way for users to navigate and interact with Radzen Blazor Numeric component.
| Press this key | To do this |
|---|---|
| Tab | Navigate to a Numeric component. |
| UpArrow in a focused Numeric | Increase the Numeric value with the Step configured. |
| DownArrow in a focused Numeric | Decrease the Numeric value with the Step configured. |
Radzen Blazor Components, © 2018-2026 Radzen.
Source Code licensed under
MIT