The RadNumericUpDown control allows you to format the value displayed in it. To do that you have to specify a format string appropriate for the numerical value
and set it to the ValueFormat property of the RadNumericUpDown control.
Tip |
|---|
|
Defining format strings in XAML can be done in the following way - "{}:{0:your format string}"
or "your format string".
|
CopyXAML
<telerikInput:RadNumericUpDown x:Name="radNumericUpDown" VerticalAlignment="Center" ValueFormat="{}
{0:0.00}" />
CopyC#
this.radNumericUpDown.ValueFormat = "{0:0.00}";This is equivalent to the following:
CopyXAML
<telerikInput:RadNumericUpDown x:Name="radNumericUpDown" VerticalAlignment="Center" ValueFormat="0.00" />
CopyC#
this.radNumericUpDown.ValueFormat = "0.00";
Here is a snapshot of the result.