Edit this page

Behavior

There are several properties that describe the behavior of RadNumericUpDown.

Here is a brief list of all behavior properties defined in RadNumericUpDown.

  • Maximum - the maximum possible value of RadNumericUpDown.

  • Minimum - the minimum possible value of RadNumericUpDown.

  • SmallChange - the change used by the Up and Down keys as well as the increase and decrease repeat buttons of RadNumericUpDown. For more information see Keyboard Navigation.

  • LargeChange - the change used by the PageUp and PageDown keys. For more information see Keyboard Navigation.

  • AutoReverse - describes the behavior whether the control will start from the Minimum value whenever the Maximum is reached and vice versa.

  • ChangeAcceleration - whenever any of the PageUp, PageDown, Up, and Down buttons are hold for more than 20 clicks, the repeat interval will automatically start to decrease.

  • IsEditable - determines whether the user can input numeric data in the TextBox using the keyboard. Still the value could be changed using the increase and decrease repeat buttons and the Up and Down keys.

  • UpdateValueToMatchTextOnLostFocus - (available with SP1 Q2 2015) determines whether the selected Value will be updated to match the displayed text when the focus gets lost and the text gets formatted.

  • IsReadOnly - (available with SP1 Q2 2015) determines whether the editing functionality of the control is enabled or disabled. When it is set to True both the increase and decrease repeat buttons are disabled – the user could no longer press them in order to increase/decrease the value. The TextBox that contains the ContentText becomes ReadOnly either and the value could no longer be changed using the keyboard or the Up/Down keys.

        <telerik:RadNumericUpDown x:Name="radNumericUpDown" IsReadOnly="True"/>
    

        this.radNumericUpDown.IsReadOnly = true;
    
        Me.radNumericUpDown.IsReadOnly = True
    

    Figure 1: RadNumericUpDown with a set to True IsReadOnly property:

    Rad Numeric Up Down Features Behavior 01

    As the TextBox becomes also ReadOnly the value of the control could no longer be changed, but still it could be selected and copied.

    Figure 2: Selection of the value of ReadOnly RadNumericUpDown:

    Rad Numeric Up Down Features Behavior 02