ComponentOne Input for ASP.NET AJAX: Using C1NumericInput > Defining C1NumericInput

Defining C1NumericInput

The C1NumericInput control has numeric range support for displaying numerical data. Since the C1NumericInput control deals strictly with numbers, there is no input mask to specify. To define the C1NumericInput, you simply supply the minimum and maximum values, the number of decimal places (can be zero), and indicate whether culture-specific thousands separators should be displayed.

You can define the value of the C1NumericInput control through the C1NumericInput Smart Tag or programmatically through the C1NumericInput object.

Note that when the user edits the value at run time, the UP ARROW or DOWN ARROW keys can be used to increase or decrease the current field.

For common C1NumericInput tasks, see the C1NumericInput Tasks topic.

C1NumericInput General Properties

The following table lists general properties of the C1NumericInput control:

 

Property

Description

Value

Double, numeric value of the C1NumericInput control.

Text

String, displayable text according to the culture information (including group separators).

MinValue

Minimum value that can be entered.

MaxValue

Maximum value that can be entered.

DecimalPlaces

Indicates the number of decimal places to display (Default: 2).

ThousandsSeparator

Indicates whether the thousands group separator will be inserted between every three decimal digits (number of digits in thousands group depends on the selected culture).

NullText

Text that will be displayed for null value.

ShowNullText

Show null text if the Numeric value is empty and the control loses its focus.

 

Most of the properties and events of the C1NumericInput control are the same as the C1MaskedInput control, except for hidden properties that are not used in numeric controls (such as the following: AllowPromptAsInput, Mask, HidePromptOnLeave, PasswordChar, PromptChar, ResetOnPrompt, ResetOnSpace, ShowHintForEnumParts, SkipLiterals, UseSystemPasswordChar).


Send comments about this topic to ComponentOne.
Copyright © 1987-2010 ComponentOne LLC. All rights reserved.