Demonstration and configuration of the Radzen Blazor Numeric component.
These demos showcase a numeric input with two-way data binding, min/max value constraints, configurable step increments and placeholders, optional up/down buttons, formatted value display with culture-specific formats, text alignment options, custom value conversion, and support for custom numeric types with TypeConverter or IFormattable implementations.
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-2025 Radzen.
Source Code licensed under
MIT