How to set the Min, Max and Format property Blazor Numeric Textbox control?

Answer:


By specifying the range in the Min and Max properties and the format in the Format property, we can customize the format of the Numeric Textbox. Please see the code snippets provided below.

Axis: Input is allowed only from 0 to 180 and the formatted output should be: "000°"

<SfNumericTextBox TValue="double?" Min="0" Max="180" Format="000°" Value="5">SfNumericTextBox>


Power: Input is allowed from -20 to +20 and the formatted output should be: "+#0.00"

<SfNumericTextBox TValue="double?" Min="-20" Max="20" Format="+#0.00" Value="5">SfNumericTextBox>


Please find the sample to set the Min, Max and Format property Blazor Numeric Textbox here.


Loader.
Up arrow icon