menu

ASP.NET MVC - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class NumericTextBox - API Reference

    Show / Hide Table of Contents

    Class NumericTextBox

    Inheritance
    System.Object
    TagHelper
    EJTagHelper
    NumericTextBox
    Inherited Members
    EJTagHelper.GetList()
    EJTagHelper.GetSerializedProperties()
    EJTagHelper.GetScriptString()
    EJTagHelper.GetHtmlAttrString(IDictionary<String, Object>)
    EJTagHelper.TagName
    EJTagHelper.Id
    EJTagHelper.NameSpace
    EJTagHelper.ClassName
    EJTagHelper.IsFor
    EJTagHelper.IsChild
    EJTagHelper.IsComplex
    EJTagHelper.IsCollection
    EJTagHelper.ParentPropertyName
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.EJ2.Inputs
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class NumericTextBox : EJTagHelper

    Constructors

    NumericTextBox()

    Declaration
    public NumericTextBox()

    Properties

    Blur

    Triggers when the NumericTextBox got focus out.

    Declaration
    [HtmlAttributeName("blur")]
    public string Blur { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    Change

    Triggers when the value of the NumericTextBox changes.

    Declaration
    [HtmlAttributeName("change")]
    public string Change { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    Created

    Triggers when the NumericTextBox component is created.

    Declaration
    [HtmlAttributeName("created")]
    public string Created { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    CssClass

    Gets or Sets the CSS classes to root element of the NumericTextBox which helps to customize the complete UI styles for the NumericTextBox component.

    Declaration
    [HtmlAttributeName("cssClass")]
    public string CssClass { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    Currency

    Specifies the currency code to use in currency formatting. Possible values are the ISO 4217 currency codes, such as 'USD' for the US dollar,'EUR' for the euro.

    Declaration
    [HtmlAttributeName("currency")]
    public string Currency { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    Decimals

    Declaration
    [HtmlAttributeName("decimals")]
    public double Decimals { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is Double.NaN

    Destroyed

    Triggers when the NumericTextBox component is destroyed.

    Declaration
    [HtmlAttributeName("destroyed")]
    public string Destroyed { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    Enabled

    Sets a value that enables or disables the NumericTextBox control.

    Declaration
    [HtmlAttributeName("enabled")]
    public bool Enabled { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is true

    EnablePersistence

    Enable or disable persisting NumericTextBox state between page reloads. If enabled, the value state will be persisted.

    Declaration
    [HtmlAttributeName("enablePersistence")]
    public bool EnablePersistence { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is false

    EnableRtl

    Enable or disable rendering component in right to left direction.

    Declaration
    [HtmlAttributeName("enableRtl")]
    public bool EnableRtl { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is false

    FloatLabelType

    The acts as a label and floats above the NumericTextBox based on the below values. Possible values are: Never - Never floats the label in the NumericTextBox when the placeholder is available. Always - The floating label always floats above the NumericTextBox. Auto - The floating label floats above the NumericTextBox after focusing it or when enters the value in it.

    Declaration
    [HtmlAttributeName("floatLabelType")]
    public FloatLabelType FloatLabelType { get; set; }
    Property Value
    Type Description
    FloatLabelType

    The default value is FloatLabelType.Never

    Focus

    Triggers when the NumericTextBox got focus in.

    Declaration
    [HtmlAttributeName("focus")]
    public string Focus { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    Format

    Declaration
    [HtmlAttributeName("format")]
    public string Format { get; set; }
    Property Value
    Type Description
    System.String

    The default value is "n2"

    HtmlAttributes

    You can add the additional html attributes such as disabled, value etc., to the element. If you configured both property and equivalent html attribute then the component considers the property value. {% codeBlock src='numerictextbox/htmlAttributes/index.md' %}{% endcodeBlock %}

    Declaration
    [HtmlAttributeName("htmlAttributes")]
    public object HtmlAttributes { get; set; }
    Property Value
    Type Description
    System.Object

    The default value is null

    Locale

    Overrides the global culture and localization value for this component. Default global culture is 'en-US'.

    Declaration
    [HtmlAttributeName("locale")]
    public string Locale { get; set; }
    Property Value
    Type Description
    System.String

    The default value is ""

    Max

    Declaration
    [HtmlAttributeName("max")]
    public object Max { get; set; }
    Property Value
    Type Description
    System.Object

    The default value is null

    Min

    Declaration
    [HtmlAttributeName("min")]
    public object Min { get; set; }
    Property Value
    Type Description
    System.Object

    The default value is null

    Placeholder

    Gets or sets the string shown as a hint/placeholder when the NumericTextBox is empty. It acts as a label and floats above the NumericTextBox based on the

    Declaration
    [HtmlAttributeName("placeholder")]
    public string Placeholder { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    Readonly

    Sets a value that enables or disables the readonly state on the NumericTextBox. If it is true, NumericTextBox will not allow your input.

    Declaration
    [HtmlAttributeName("readonly")]
    public bool Readonly { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is false

    ShowClearButton

    Specifies whether to show or hide the clear icon.

    Declaration
    [HtmlAttributeName("showClearButton")]
    public bool ShowClearButton { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is false

    ShowSpinButton

    Specifies whether the up and down spin buttons should be displayed in NumericTextBox.

    Declaration
    [HtmlAttributeName("showSpinButton")]
    public bool ShowSpinButton { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is true

    Step

    Declaration
    [HtmlAttributeName("step")]
    public double Step { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is 1

    StrictMode

    Specifies a value that indicates whether the NumericTextBox control allows the value for the specified range. If it is true, the input value will be restricted between the min and max range. The typed value gets modified to fit the range on focused out state. Else, it allows any value even out of range value, At that time of wrong value entered, the error class will be added to the component to highlight the error. {% codeBlock src='numerictextbox/strictMode/index.md' %}{% endcodeBlock %}

    Declaration
    [HtmlAttributeName("strictMode")]
    public bool StrictMode { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is true

    ValidateDecimalOnType

    Specifies whether the decimals length should be restricted during typing.

    Declaration
    [HtmlAttributeName("validateDecimalOnType")]
    public bool ValidateDecimalOnType { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is false

    Value

    Sets the value of the NumericTextBox.

    Declaration
    [HtmlAttributeName("value")]
    public object Value { get; set; }
    Property Value
    Type Description
    System.Object

    The default value is null

    Width

    Specifies the width of the NumericTextBox.

    Declaration
    [HtmlAttributeName("width")]
    public string Width { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved