12.4. NumericTextBox

NumericTextBox is a control designed to render a text box but allows only numeric input (digits, the decimal point, and the minus, percentage, or dollar signs). If defined, it also renders spin buttons that enable users to increase and decrease the value entered by predefined increments, or steps.

You can define your NumericTextBox to render for general numbering, percentage, and currency.

12.4.1. Implementing Value Range and Spin Buttons

The following example shows how to define a range of allowed values and also how to enable or disable the spin buttons in a NumericTextBox. Listing 12-9 demonstrates how to implement a range of values and to work with the spin buttons. Figure 12-9 shows the example running.

Example 12.9. ...

Get Pro Telerik ASP.NET and Silverlight Controls: Master Telerik Controls for Advanced ASP.NET and Silverlight Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.