This control provides a rich user experience by allowing users to define various value formats, as well as additionally customize them to meet the customers' business requirements. The rich formatting options let users to define different value formats. Besides the predefined numeric, percentage and currency formats, developers can also create their custom formats. RadNumericUpDown also allows you to define minimum and maximum values to which the user can increment/decrement the input’s value. Additionally, you can specify the “change” that will be applied to the value upon each increase/decrease. The control can also be used in read-only mode in which the user cannot set custom values.
RadNumericUpDown can be used in UpDown mode that uses paired arrow-buttons to increment or decrement a certain value, i.e. a scroll position or a number displayed in a companion control without showing a text box. To accomplish this feature you should set the ShowTextBox property to false. In previous version the UpDown control used to be called RadUpDown, but since the 2009 Q2 SP1 it is marked obsolete and users are encourage to use the RadNumericUpDown with ShowTextBox set to false.
Moreover,
RadNumericUpDown can be fully declared both in xaml and code behind, and extensively customized in
Microsoft Expression Blend. However, changing the control template of
RadNumericUpDown may impact its functionality in case some required parts are missed. For more details about required parts in the control template as well as appearance and styling you should refer to the
Styling and Appearance section of this help.
Note |
|---|
Note that the namespace telerik used in all examples below must be explicitly declared and must point to the appropriate assembly that holds the control. For more information on declaring a namespace in xaml and code behind refer to Manually Declaring XAML. |
See Also