ComponentOne Input for ASP.NET WebForms
Using C1InputNumeric / Defining C1InputNumeric
In This Topic
    Defining C1InputNumeric
    In This Topic

    The C1InputNumeric control has numeric range support for displaying numerical data. Since the C1InputNumeric control deals strictly with numbers, there is no input mask to specify. To define the C1InputNumeric, 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 C1InputNumeric control through the C1InputNumeric Smart Tag or programmatically through the C1InputNumeric 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 C1InputNumeric tasks, see the C1InputNumeric Tasks topic.

    C1InputNumeric General Properties

    The following table lists general properties of the C1InputNumeric control:

    Property Description
    Value Double, numeric value of the C1InputNumeric control.
    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).
    Placeholder The Placeholder property determines the text that will be displayed for blank status.

    Most of the properties and events of the C1InputNumeric control are the same as the C1InputMask control, except for hidden properties that are not used in numeric controls (such as the following: AllowPromptAsInputMaskFormat, HidePromptOnLeave, PasswordChar, PromptChar, ResetOnPrompt, ResetOnSpace, SkipLiterals).