New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Definition

Constructors

C#
public NumericTextBox(ViewContext viewContext, IJavaScriptInitializer javaScriptInitializer, ViewDataDictionary viewData)
Parameters:viewContextViewContextjavaScriptInitializerIJavaScriptInitializerviewDataViewDataDictionary

Properties

If this property is enabled and you have configured min and/or max values, and the user enters a value that falls out of that range, the value will automatically be set to either the minimum or maximum allowed value.

C#
public bool? AutoAdjust { get; set; }
C#
public string Culture { get; set; }
C#
public int? Decimals { get; set; }
C#
public string DecreaseButtonTitle { get; set; }
C#
public bool? Enabled { get; set; }
C#
public double? Factor { get; set; }

Sets a value controlling how the color is applied.

C#
public FillMode? FillMode { get; set; }
C#
public string Format { get; set; }
C#
public string IncreaseButtonTitle { get; set; }

Defines the "inputmode" attribute of the inner <input /> element. The attribute specifies the type of on-screen keyboard displayed when the user focuses the input.

C#
public string InputMode { get; set; }
C#
public NumericTextBoxLabelSettings Label { get; set; }

Max

T?

C#
public T? Max { get; set; }

Min

T?

C#
public T? Min { get; set; }
C#
public string Placeholder { get; set; }
C#
public PrefixOptionsSettings PrefixOptions { get; set; }
C#
public bool? RestrictDecimals { get; set; }
C#
public bool? Round { get; set; }

Sets a value controlling the border radius.

C#
public Rounded? Rounded { get; set; }

When set to true, the text of the input will be selected after the widget is focused.

C#
public bool? SelectOnFocus { get; set; }

Sets the size of the component.

C#
public ComponentSize? Size { get; set; }
C#
public bool? Spinners { get; set; }
C#
public T? Step { get; set; }
C#
public SuffixOptionsSettings SuffixOptions { get; set; }
C#
public T? Value { get; set; }

Implements: IInputComponent<T>.Value

Methods

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

Overrides: WidgetBase.Serialize()

Implements: IFormEditor.Serialize()

C#
public override void VerifySettings()

Overrides: WidgetBase.VerifySettings()

Writes the HTML.

C#
protected override void WriteHtml(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

Overrides: WidgetBase.WriteHtml(HtmlTextWriter)

Writes the initialization script.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

The writer.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)